URL Encoder and Decoder — Percent-Encoding Made Easy
Encode URLs and query parameters or decode percent-encoded strings instantly with this free online URL encoder/decoder. Special characters like spaces, ampersands, question marks, and non-ASCII text break URLs unless they are properly percent-encoded — this tool does it correctly in one click, entirely in your browser.
It supports both encodeURIComponent-style encoding (for query string values) and full-URI encoding, so you can safely build API requests, share links with special characters, debug redirect chains, and inspect what an encoded tracking URL actually contains.
How to URL-Encode or Decode a String
-
Paste your text or URL
Drop in the raw string you want to encode, or the %-encoded string you want to decode.
-
Pick encode or decode
Choose the direction — the conversion updates live as you type.
-
Choose component or full URL mode
Encode a single query parameter value, or encode a full URL while preserving its structure.
-
Copy the result
One click copies the safely encoded (or human-readable decoded) string to your clipboard.
Features of the URL Encoder / Decoder
-
Component and full-URI modes
Correctly handles the difference between encoding a parameter value and encoding an entire URL.
-
UTF-8 aware
International characters, emoji, and symbols are percent-encoded to spec (RFC 3986).
-
Live two-way conversion
Instant results in both directions — perfect for debugging redirects and callback URLs.
-
Runs fully client-side
URLs with tokens or session IDs never leave your machine.
-
Whitespace and plus handling
Understands the difference between %20 and + so form-encoded data decodes correctly.
Frequently Asked Questions
What is percent-encoding (URL encoding)?
Percent-encoding replaces unsafe characters in URLs with a % followed by their hexadecimal byte value — for example, a space becomes %20. It ensures URLs remain valid and unambiguous across browsers and servers.
When should I use encodeURIComponent vs encodeURI?
Use component encoding for individual values placed inside a query string (it encodes &, =, ?, /). Use full-URI encoding when you want to sanitize a complete URL while keeping its structure intact.
Why does my URL contain %2520?
That is double encoding — a %20 that was encoded again (% became %25). Decode the string twice with this tool to recover the original text, and fix the code that encodes it twice.
How are spaces encoded in URLs?
In URL paths and modern query strings a space is %20. In legacy application/x-www-form-urlencoded form data, a space may appear as +. This tool handles both conventions.