URL Encoder / Decoder
Encode special characters for safe URLs or decode percent-encoded strings. Supports both full URL and component encoding.
About URL Encoder / Decoder
URLs look like simple strings, but they are governed by a strict set of rules about which characters are allowed where. Anything outside a small whitelist โ spaces, special characters, non-ASCII text โ must be percent-encoded to be safe inside a URL. This encoder and decoder converts text to and from URL-safe form in real time, helping you build query strings, decode shared links, and understand exactly what is being sent in an HTTP request.
It distinguishes between full-URL encoding (which preserves structural characters like slashes and colons) and component encoding (which escapes every special character), so you get the right behaviour whether you are building an entire URL or escaping a single parameter value. Useful for debugging tracking links, building OAuth callbacks, encoding search query strings, and reading the actual destination of a redirect URL.
How to Use
Select 'Encode' or 'Decode' mode.
Choose encoding type: 'Component' encodes everything (for query params), 'Full URL' preserves URL structure.
Enter your text or URL in the input box.
Click the button to encode or decode, then copy the result.
Frequently Asked Questions
What is the difference between Component and Full URL encoding?
Component encoding (encodeURIComponent) encodes all special characters including /, ?, &, = โ use this for query parameter values. Full URL encoding (encodeURI) preserves the URL structure and only encodes characters that aren't valid in any part of a URL.
When should I URL-encode?
You should URL-encode whenever you include user input or special characters in URLs, especially in query parameters. This ensures characters like &, =, and spaces don't break the URL structure.
Is my data sent to any server?
No. All encoding and decoding happens in your browser. Nothing is transmitted to any server.

URL Encoder & Decoder Online: Encode Special Characters Safely
Spaces, ampersands, and special characters break URLs unless they're properly encoded. Learn how URL encoding works and when to use each variant.
Read the full guide