URL Encoder, Decoder & Query Parser
Percent-encode or decode URLs and query strings, switch between encodeURIComponent and encodeURI behaviour, and break any URL into editable query parameters.
Query string parser
About the URL Encoder & Decoder
URLs may only contain a limited set of characters, so spaces, ampersands, question marks and non-ASCII characters must be percent-encoded (for example a space becomes %20). Bytewrench's URL encoder converts text and query parameters to percent-encoded form and decodes them back to readable text.
It mirrors the behaviour of JavaScript's encodeURIComponent/decodeURIComponent, making it perfect for building query strings, debugging redirects and inspecting API requests.
Percent-encode any string or decode an encoded URL back to plain text.
Safely encode parameter values for use in URLs and API calls.
Handles UTF-8 characters so international text encodes correctly.
All encoding happens in your browser with nothing sent to a server.
Frequently asked questions
What is URL encoding?
URL encoding (percent-encoding) replaces characters that aren't allowed in URLs with a percent sign followed by their hex code, e.g. a space becomes %20.
When should I encode a URL?
Encode any value placed into a query string or path segment that may contain spaces, &, ?, =, # or non-ASCII characters, so the URL is parsed correctly.
What's the difference between encodeURI and encodeURIComponent?
encodeURIComponent encodes more characters and is meant for individual parameter values, while encodeURI is for whole URLs and leaves structural characters intact. This tool encodes components.
Is the data uploaded anywhere?
No. Encoding and decoding run entirely in your browser.