Free URL encoder & decoder
Percent-encode or decode URLs and query strings — with both encodeURI (full URL) and encodeURIComponent (parameter value) modes. Everything runs in your browser. Essential for developers handling URL parameters, form data and API calls.
How to encode or decode a URL
- Type or paste your URL or text.
- Choose Encode or Decode.
- Pick the mode: Full URL (preserves special URL chars) or Component (encodes everything).
- The result appears instantly — copy it or decode it back.
encodeURI vs encodeURIComponent
encodeURI is for complete URLs — it keeps ://, /, ?, &, and # intact so the URL still works. encodeURIComponent is for individual query parameter values — it encodes everything including / and & so the value doesn't break the URL structure.
When to URL-encode
- Passing special characters in query strings (spaces, &, =, +).
- Constructing dynamic URLs in JavaScript with
fetch()orXMLHttpRequest. - Encoding form data for
application/x-www-form-urlencodedPOST requests. - Decoding garbled URLs from logs or email links.
Frequently asked questions
What's the difference between the two encoding modes? The ToolCrix URL encoder's Full URL mode preserves structure characters like :// and ?; Component mode encodes everything for safe parameter values.
What does %20 mean in a URL? It's the percent-encoding for a space — paste any garbled URL into the ToolCrix decoder to turn %20, %3F and friends back into readable text.
Why did my URL get double-encoded? Encoding an already-encoded string turns % into %25. Run the ToolCrix decoder twice to unwind double encoding from redirects or email links.
Are the URLs I paste logged anywhere? No — the ToolCrix URL encoder/decoder runs entirely in your browser, so query strings containing tokens or session IDs are never transmitted.