URL Parser & Query String Converter
Break a URL into protocol, host, path, and query, and convert query strings to and from JSON
도구를 불러오는 중…
🔒 Everything runs 100% in your browser. Your files and input are never uploaded to any server.
Break a URL into its protocol, host, path, hash, and query parameters, and convert query strings to JSON and JSON back to query strings with this developer tool. Using the browser's built-in URL and URLSearchParams APIs, it groups repeated keys into arrays and automatically encodes non-ASCII characters and special symbols.
How to use
- In the 'Parse URL' tab, enter a full URL to see its components, query parameters, and the resulting JSON.
- In the 'Query → JSON' tab, convert a query string like a=1&b=2 into a JSON object (a leading ? is fine).
- In the 'JSON → Query' tab, convert a { key: value } object into a query string (arrays repeat the same key).
- Use the copy button next to the results to put the JSON or query string on your clipboard.
FAQ
- What happens if there are several parameters with the same name?
- When a key repeats, like tag=a&tag=b, it's bundled into a ["a","b"] array when converting to JSON. Conversely, an array value in JSON is expressed by repeating the same key multiple times in the query string.
- Are addresses without a protocol parsed too?
- If there's no protocol, like example.com/path, it automatically prepends https:// and attempts to parse. If the format is still invalid, it shows an error message.
- Is the URL I enter sent to a server?
- No. Parsing and conversion are all handled by the browser's URL and URLSearchParams APIs, and the URLs or data you enter are never transmitted to or stored on a server.
