Query string builder

Query string builder

Build and parse URL query strings with correct UTF-8 and plus encoding.

About this tool

A query string carries names and values after the question mark in a URL. Spaces, plus signs and non-English characters need encoding, and URLSearchParams handles those rules for you.

Add rows to build an encoded query string or a full URL. Paste an existing URL or query string to break it back into rows, then copy the result.

Worked example

The rows q=a b and page=2 build q=a+b&page=2. On a base of https://example.com/search the full URL is https://example.com/search?q=a+b&page=2.

Common searches