Free online tool
Free Online URL Encoder / Decoder
URL encode and decode text online. Component mode uses encodeURIComponent (encodes &=?#). Whole-URL mode uses encodeURI (preserves structure). Live two-way transform. 100% client-side — no signup required.
01How it works
Paste your text or URL
Paste a URL component or full URL into either pane. Both panes update live as you type.
Choose a mode
Component mode is the safe default for encoding query parameter values. Whole-URL mode preserves URL structure characters.
Copy the result
Copy the encoded or decoded output to clipboard with one click.
FAQ
Frequently asked questions
What is the difference between component mode and whole-URL mode?
Component mode (encodeURIComponent) encodes everything that has special meaning in a URL: &, =, ?, #, +, and /. Use it when encoding a single query parameter value or path segment. Whole-URL mode (encodeURI) preserves those characters because it assumes the whole URL is already structurally correct — only illegal URL characters are encoded.
Why does encodeURIComponent use %20 instead of + for spaces?
encodeURIComponent encodes a space as %20. Some older form implementations encode spaces as +. The + convention is non-standard for paths; %20 is the correct and unambiguous form. If you see + in a URL you are decoding, switch to a search-param parser rather than plain decodeURIComponent.
Which characters are never encoded?
Letters (A–Z, a–z), digits (0–9), and the characters - _ . ! ~ * ' ( ) are never encoded by encodeURIComponent. These are the RFC 3986 unreserved characters that carry no special meaning in URLs.
How do I avoid double-encoding?
Double-encoding happens when you encode an already-encoded string. For example, encoding %20 produces %2520 because % gets encoded to %25. Decode first, then re-encode fresh if you need to change the encoding. This tool's live mode shows you the result immediately so you can spot double-encoding.
Need AI-powered document extraction?
This tool uses client-side processing. anyrow uses AI to extract structured data from PDFs, images, and scanned documents with 99% accuracy. 150 free extractions/month — no credit card required.