URL Encoder / Decoder
Percent-encode or decode URLs and query parameters right in your browser. Switch between encoding a single component or a whole URL, and copy the result — nothing is ever sent to a server.
How to use it
- 1Pick encode or decode
Choose whether you’re encoding text into a URL-safe form or decoding it back.
- 2Choose the scope
Select “Component” for a single value, or “Full URL” to preserve the overall URL structure.
- 3Paste your text
Type or paste into the input; the result updates instantly.
- 4Copy the result
Copy the encoded or decoded output with one click.
When to URL-encode
Special characters like spaces, &, ? and = have meaning in a URL. Before putting arbitrary text into a query string or path, you percent-encode it so it travels safely. Decoding reverses the process so you can read the original value.
Component vs full URL
Use “Component” (encodeURIComponent) for a single value such as a query parameter — it escapes & = ? / and more. Use “Full URL” (encodeURI) when you want to encode spaces and unsafe characters but keep the URL’s structure intact.
Frequently asked questions
Is my text sent to a server?
No. Encoding and decoding run entirely in your browser; nothing is uploaded.
What’s the difference between component and full-URL encoding?
Component encoding (encodeURIComponent) escapes characters like & = ? / for use inside a single value. Full-URL encoding (encodeURI) encodes spaces and unsafe characters but leaves the URL’s separators intact.
Why did decoding fail?
Decoding fails if the text contains a stray “%” that isn’t part of a valid escape sequence (like %20). Fix or remove it and try again.
Does it handle Unicode?
Yes — non-ASCII characters are percent-encoded as UTF-8 and decode back exactly.
Related tools
Base64 Encoder
Encode text to Base64 or decode Base64 back to text in your browser. Full UTF-8 support, copy with one click — nothing is sent to a server.
JSON Formatter
Format, minify and validate JSON in your browser with precise error locations. Fast, private and free — your data never leaves your device.
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes from text in your browser with the Web Crypto API. Copy the hex digest — nothing is sent to a server.