01What is URL Encoder / Decoder?
Percent-encoding looks simple until a + turns into a space or an & splits your query string in half. URL Encoder / Decoder gives you three tabs to sort that out: Encode, Decode and Parse. Encode turns each unsafe character into the %XX hex form of its UTF-8 bytes, following the percent-encoding rules in RFC 3986. Decode reverses it. With both checkboxes unticked, the tool uses JavaScript's encodeURIComponent and decodeURIComponent. Those encode everything except letters, digits and - _ . ! ~ * ' ( ), so &, =, ?, # and / become %26, %3D, %3F, %23 and %2F, and a space becomes %20. That's the right choice for a single query value or path segment. Tick Full URL mode to switch to encodeURI and decodeURI. They leave the characters that give a URL its structure alone (: / ? # [ ] @ & = + and friends) and only escape spaces, non-ASCII text and other unsafe characters. Tick Form encoding to get application/x-www-form-urlencoded, the format HTML forms submit as described in the WHATWG URL Standard. Spaces become + and ! ' ( ) ~ are encoded too. Decoding in that mode turns + back into a space before decoding the rest. The two boxes can't both be on, since ticking one clears the other. A worked example makes the difference clear. Type hello world & more in Encode. Component mode gives hello%20world%20%26%20more, and Form encoding gives hello+world+%26+more. Type price=10€ and you get price%3D10%E2%82%AC, because the euro sign is three bytes in UTF-8. A Swap button moves the output into the input and flips between Encode and Decode, which is handy for checking a round trip. The Parse tab runs your text through the browser's URL parser, adding https:// when no scheme is given. It lists the protocol, origin, host, hostname, port, pathname, search and hash, plus a table of query parameters. Those parameter values are decoded the way URLSearchParams does it, so + shows as a space there. Some limits to keep in mind. Malformed input, such as a lone % or a cut-off byte sequence like %E2%82, shows the browser's error message and no output. The tool decodes once per click, so a double-encoded %2520 needs two passes. It doesn't apply punycode to international domain names in Encode mode. All of the encoding is plain JavaScript running in this tab, so your URLs and tokens stay in your browser.
Web and API developers who build query strings and redirect URLs by hand, and anyone reading percent-encoded links out of logs or analytics exports. The tool runs entirely in your browser, so your data never leaves your device.
02How to use URL Encoder / Decoder
- Pick the Encode, Decode or Parse tab
- Paste or type your text or URL into the input
- For Encode or Decode, leave both boxes unticked for encodeURIComponent, or tick Full URL mode (encodeURI / decodeURI) or Form encoding (space as +)
- Read the result in the output panel, or the component and query parameter tables in Parse
- Click Copy, or Swap to send the result back through the opposite direction
03Worked examples
- Input:
hello world & more - Result:
hello%20world%20%26%20more - Component mode (encodeURIComponent): spaces become %20 and & is escaped so it can't split a query string.
- Input:
hello world & more, with Form encoding (space as +) ticked - Result:
hello+world+%26+more - Form encoding works the way browsers submit HTML forms, with + for spaces.
- Input:
price=10€ - Result:
price%3D10%E2%82%AC - € is three bytes in UTF-8, so it becomes three percent-escapes.
- Input:
a+b/c?d - Result:
a%2Bb%2Fc%3Fd - In component mode +, / and ? are escaped; a literal + left unescaped would be read as a space by form decoders.
- Input:
https://example.com/a b/a+b/c?d, with Full URL mode ticked - Result:
https://example.com/a%20b/a+b/c?d - Full URL mode (encodeURI) keeps the characters that give a URL its structure, such as / ? & = and +, and only escapes the space.
- Input:
hello world!, with Form encoding (space as +) ticked - Result:
hello+world%21 - Form encoding escapes ! as well, which encodeURIComponent would leave alone.
04Common use cases
- Encoding a search term like C++ & Rust before putting it into a q= parameter, so the + and & survive
- Decoding a long percent-encoded URL from an nginx access log or an analytics export so you can read it
- Passing a full callback URL as the value of a redirect_uri parameter, which needs component mode so its own ? and & are escaped
- Checking a form POST body copied from browser devtools, using Form encoding so + decodes to spaces
- Spotting double encoding such as %2520 in a link that a CMS or email tool encoded a second time
- Splitting a tracking link into its parts in the Parse tab to check each utm_ parameter value
05Tips
- Use component mode for single query values. Full URL mode leaves & and = alone because it assumes they are part of the URL structure.
- %20 and + both mean a space only in form-encoded query strings and bodies. In a path, + is a literal plus sign, so tick Form encoding only for form data.
- encodeURIComponent leaves ! ' ( ) * unescaped even though RFC 3986 lists them as reserved. If a strict server rejects them, Form encoding escapes all of those except *.
- If you see %2520 where %20 belongs, the string was encoded twice. Decode once and check whether the result looks right before decoding again.
- Swap is a fast round-trip test: encode, swap, and the decoded text should match what you started with.
06Related concepts
RFC 3986, Percent-encoding, Query string, URI component.
Frequently Asked Questions
What is URL Encoder / Decoder?
URL Encoder / Decoder is a free, browser-based developer tool on AIDToolStack. Encode and decode URLs and URI components. Parse query strings and handle special characters. It requires no installation or sign-up and works entirely in your browser.
Is URL Encoder / Decoder free to use?
Yes. No sign-up, no fees and no usage cap.
Does URL Encoder / Decoder store my data?
No. It runs in your browser; nothing is uploaded.
Video
From our YouTube channel. The player loads from YouTube only when you press play.