URL Encoder / Decoder
Percent-encode or decode URLs and query strings, in your browser.
Recommended next steps
Related tools
Encode text to HTML entities or decode entities back to text.
Encode or decode text to and from base64, with a URL-safe variant.
Convert JSON arrays to CSV and CSV back to JSON, in your browser.
Frequently asked questions
URL encoding replaces characters that aren't allowed in a URL — like spaces, accents, or reserved symbols — with a percent sign followed by their byte value in hex, such as %20 for a space. It keeps links and query strings valid so browsers and servers read them correctly.
"Query value or path segment" uses encodeURIComponent, which also escapes reserved delimiters (& = / ? #) — use it for a single value you're dropping into a URL. "Whole URL" uses encodeURI, which leaves those structural characters intact so a full address stays usable. Pick the component scope when in doubt about a single value.
Percent-encoding represents a space as %20, which is valid everywhere in a URL. The plus sign only means a space inside the query string of form submissions (application/x-www-form-urlencoded); it is literal elsewhere. Using %20 avoids that ambiguity, so this tool always uses %20.
No. Encoding and decoding run entirely in your browser with built-in JavaScript functions. The text you enter never leaves this page and isn't sent to a server.
Last updated 2026-06-23.