URL Decoder & Encoder
Decode a URL or encode one to its percent-encoded form. Paste text on the left, read the result on the right — nothing is uploaded, logged, or stored.
You're encoding: readable text is being converted into a URL-safe, percent-encoded format.
0 characters
0 characters
EXAMPLES
What gets converted, and how
A few common cases the encoder and decoder handle correctly.
A space in a URL
hello worldhello%20worldA query parameter with symbols
q=coffee & teaq%3Dcoffee%20%26%20teaAn email address in a query string
user@example.comuser%40example.comA full URL with a fragment
https://example.com/search?q=caféhttps%3A%2F%2Fexample.com%2Fsearch%3Fq%3Dcaf%C3%A9Reserved characters
100% off / half-price?100%25%20off%20%2F%20half-price%3F
DOCUMENTATION
URL encoding and URL decoding, explained
What is URL encoding?
URL encoding is the process of converting characters that aren't allowed in a URL — or that have a special meaning inside one — into a format that every browser, server, and application can transmit safely. A URL can only contain a limited set of ASCII characters: letters, digits, and a small handful of punctuation marks such as - _ . ~. Anything outside that set, including spaces, accented letters, punctuation like & or =, and characters from non-Latin alphabets, has to be represented differently before it can travel inside a URL without being misread or truncated.
This matters constantly in ordinary web use. A search box that lets someone type "café menu" needs to turn that phrase into something a server can parse as a single query value, not two separate words split by a raw space, and not a string that breaks because of an accented letter. URL encoding is what makes that translation possible.
What is URL decoding?
URL decoding is the reverse operation: taking a percent-encoded string, such as the one produced above, and converting it back into the original, human-readable text. When a server receives a request, it decodes the URL to recover the real values a person or application intended to send — the actual search term, the actual file name, the actual parameter value.
Decoding is just as common as encoding in everyday development work. Log files, browser address bars, API responses, and shared links frequently show encoded values, and being able to decode a URL quickly is often the fastest way to understand what a link actually points to or what data a request actually carries.
How percent-encoding works
Both operations rely on the same underlying system: percent-encoding, sometimes called URL encoding for short. Each character that can't appear literally in a URL is replaced with a percent sign (%) followed by its two-digit hexadecimal byte value. A space becomes %20, an ampersand (&) becomes %26, and an equals sign (=) becomes %3D. Characters outside the basic ASCII range — accented letters, symbols, and characters from other scripts — are first converted to their UTF-8 byte sequence, and each byte in that sequence is then percent-encoded, which is why a single accented character like é can turn into multiple percent codes (%C3%A9).
A handful of encoded characters come up so often that it's worth memorizing them: %20 for a space (or + inside a query string), %2F for a forward slash, %3F for a question mark, %23 for a hash or fragment symbol, %26 for an ampersand, and %25 for a literal percent sign itself. Recognizing these on sight makes it much faster to read an encoded URL without running it through a tool at all.
Encoding query parameters and full URLs
Query parameters need particular care, because the characters that separate them — ?, &, and = — are meaningful to the URL structure itself. If a parameter's value contains one of these characters unencoded, the URL is parsed incorrectly: an "&" inside a value looks like the start of a new parameter, and a raw "=" looks like an assignment. Encoding just the value, while leaving the surrounding ?, &, and = characters alone, keeps the URL structurally correct while safely carrying arbitrary text inside it.
Encoding a complete URL is a related but different task: every reserved character in the URL — including the slashes in the path and the colon after the scheme — gets encoded, which is useful when an entire URL needs to be embedded as a single value inside another URL's query string, for example when building a redirect or a sharing link.
URL encoding vs. URL decoding: what's the difference
The two operations are exact inverses of each other. URL encoding takes readable text and produces a percent-encoded string that is safe to place inside a URL. URL decoding takes that percent-encoded string and reconstructs the original readable text. Encoding is what you do before sending data in a URL; decoding is what you, or a server, do after receiving one. Running a piece of text through encode and then decode should return exactly the original text — a good way to sanity-check a URL is correct.
How to use this URL encoder and decoder
Choose Encode or Decode using the switch above the tool, then paste text into the input box on the left. The result appears instantly in the box on the right as you type — there's no button to press and no page reload. Use Copy to place the result on your clipboard, Clear to empty the input, and the swap icon to move the result back into the input if you want to reverse the operation. The character counter beneath each box makes it easy to confirm nothing was accidentally truncated.
Common URL encoding examples
A few patterns come up again and again. A space becomes %20 (or a + sign in a form-encoded query string). An ampersand inside a value becomes %26 so it isn't mistaken for a parameter separator. An email address used as a parameter value has its @ symbol encoded as %40. Non-English text — accented letters, Cyrillic, Japanese, and other scripts — expands into several percent codes per character because of UTF-8 byte encoding. The examples further up this page walk through several of these side by side.
Common use cases for developers and everyday users
Developers reach for a URL encoder and decoder constantly: building API requests, constructing redirect and callback URLs, debugging why a query parameter isn't arriving the way it was sent, reading webhook payloads, or preparing user-generated text to be safely embedded in a link. Everyday users run into the same need in smaller ways — sharing a link that contains special characters, understanding a strange-looking URL from an email or a QR code, or fixing a broken bookmark where a space was left unencoded.
Privacy: everything happens in your browser
This tool performs every conversion locally, using JavaScript that runs on your device. The text you type is never uploaded, transmitted, logged, or stored anywhere — there is no server-side processing step at all. You can paste sensitive query strings, internal URLs, or personal data into the tool without it ever leaving your browser tab, and you can safely use it offline once the page has loaded.
FAQ
Frequently asked questions
Straight answers about URL encoding, URL decoding, and percent encoding.
What is URL decoding?
URL decoding converts percent-encoded characters in a URL back into their original readable form. For example, %20 represents a space and becomes a normal space again when you decode a URL.
What is URL encoding?
URL encoding converts characters that aren't safe inside a URL — like spaces, accented letters, and symbols such as & or = — into a percent-encoded format made up of a % sign followed by a two-digit hexadecimal value.
How do I decode a URL?
Switch this tool to Decode mode, then paste the percent-encoded URL or text into the input box. The readable result appears instantly in the output box, with no upload or page reload needed.
How do I encode a URL?
Switch this tool to Encode mode, then paste your text or URL into the input box. It is converted into percent-encoded, URL-safe text immediately, ready to copy into a link or query string.
What is a URL decoder?
A URL decoder is a tool that converts percent-encoded URLs — strings containing sequences like %20 or %3D — back into their original, human-readable text.
What is a URL encoder?
A URL encoder is a tool that converts plain text or a full URL into a percent-encoded format so it can be transmitted safely inside a URL, without unsafe characters breaking the link.
How do I decode a URL online?
Paste the encoded URL into this page's input box while Decode mode is selected. The conversion happens instantly in your browser, and you can copy the decoded result with one click.
How do I encode a URL online?
Paste your text or URL into this page's input box while Encode mode is selected. The percent-encoded result appears immediately and can be copied with the Copy button.
What does URL encoding mean?
URL encoding means representing a character that can't appear directly in a URL as a % sign followed by its hexadecimal byte value, so the URL remains valid and unambiguous.
What does URL decoding mean?
URL decoding means reversing that process — reading each %XX sequence in a URL and converting it back into the character it represents, restoring the original text.
What is percent encoding?
Percent encoding is the formal name for the encoding scheme used in URLs, where reserved or unsafe characters are replaced with a % followed by a two-digit hexadecimal code representing that character's byte value.
Why are spaces encoded in URLs?
A raw space isn't a valid character inside a URL and can cause it to be cut short or misread by browsers, servers, and command-line tools, so it is encoded as %20 (or + in a query string) to keep the URL intact.
What is %20 in a URL?
%20 is the percent-encoded representation of a single space character. It appears wherever a space would otherwise sit inside a URL, most often within a search query or file name.
What is the difference between URL encoding and URL decoding?
URL encoding converts readable text into a percent-encoded, URL-safe format, while URL decoding does the exact opposite — converting percent-encoded text back into its original readable form. They are inverse operations.
Is there a free URL decoder?
Yes — this page is a free URL decoder and encoder that runs entirely in your browser, with no sign-up, no limits, and no data sent to a server.
How do I decode an encoded URL?
Paste the encoded URL into the input box with Decode mode selected, and the tool converts every %XX sequence back into its original character instantly, showing the readable URL in the output box.