URL Encoder & Decoder Online
Encode or decode URLs, URL components, and query parameter values. Convert spaces, special characters, and Unicode text with accurate percent-encoding. Free, instant, and private.
Your text never leaves your browser.
URL encoding options
Encoded URL
Paste text or a URL to percent-encode it. Spaces, reserved characters and Unicode are converted as you type.
How to encode or decode a URL online
Pick a direction, Encode URL or Decode URL, and a mode that matches what you are working with: a single URL component, a full URL, or one form-encoded query parameter value. Paste your text and the result updates as you type. Copy the result, or press Use as input to process it again with the same settings. Each operation adds or removes exactly one layer of encoding.
What URL encoding and percent-encoding mean
URLs may only contain a limited set of ASCII characters, and some of them, such as /, ?, & and #, have structural meaning. Percent-encoding writes any other byte as % followed by two hexadecimal digits. Text is first converted to UTF-8, so one character can produce one to four escapes. Unreserved characters (letters, digits and - _ . ~) never need encoding.
| Text | URL component encoding |
|---|---|
| Hello world! | Hello%20world%21 |
| a/b?x=1&y=2 | a%2Fb%3Fx%3D1%26y%3D2 |
| Café | Caf%C3%A9 |
| 100% | 100%25 |
| 😀 | %F0%9F%98%80 |
URL component vs Full URL encoding
Full URL mode uses encodeURI: it keeps delimiters like : / ? # & = so the URL keeps its structure, and escapes spaces and non-ASCII characters. URL component mode escapes those delimiters too, which is what you need for a single path segment or query value. Full URL mode cannot tell a separator from data, so a raw & inside a value stays ambiguous: encode each value as a component first. A % in the input is always treated as text, so %20 becomes %2520. The URL is never parsed, validated, opened or normalized.
https://example.com/a b?q=Žąsis&lang=lt#top
https://example.com/a%20b?q=%C5%BD%C4%85sis&lang=lt#top
https%3A%2F%2Fexample.com%2Fa%20b%3Fq%3D%C5%BD%C4%85sis%26lang%3Dlt%23top
a%20b%2Fc → a b%2Fc
Spaces: %20 vs +
In a URL path or any generic component, a space is %20 and a plus sign is just a plus sign. HTML forms use the application/x-www-form-urlencoded format, where a space becomes + and a literal plus becomes %2B. Query parameter value mode follows the form rules for one value; it does not parse or reorder a whole query string.
a%20b%2Bc%26d%3De
a+b%2Bc%26d%3De
a+b
a b
URL encoding for international text and emoji
Accented letters, Cyrillic, Greek, Arabic and CJK text, and emoji are encoded as their UTF-8 bytes. Nothing is normalized or transliterated, so a precomposed é (%C3%A9) and a decomposed e plus combining accent (e%CC%81) stay different. Line breaks are kept exactly: LF is %0A, CR is %0D, CRLF is %0D%0A and a tab is %09. To see which code points a string contains, open it in the Unicode Inspector.
| Script | Text | URL component encoding |
|---|---|---|
| Lithuanian | Žąsis | %C5%BD%C4%85sis |
| Cyrillic | Привет | %D0%9F%D1%80%D0%B8%D0%B2%D0%B5%D1%82 |
| Japanese | 日本 | %E6%97%A5%E6%9C%AC |
| e + combining accent | é | e%CC%81 |
Common URL decoding errors
Decoding stops with an error, rather than guessing, when a % is not followed by two hex digits (abc%, abc%2, %ZZ) or when the bytes are not valid UTF-8 (%FF, or the truncated %E0%A4%A). Your input is kept so you can correct it. A literal percent sign must be written as %25. If you see %25 followed by hex digits, the text was probably encoded twice; decode it once more to remove the extra layer.
URL Encoder vs HTML Entity Encoder
URL encoding makes text safe inside a URL; HTML entity encoding makes text safe inside HTML source. They solve different problems: & becomes %26 in a URL but & in HTML. A link placed in an HTML attribute may need both, URL encoding for the value and then entity encoding for the markup. For the HTML side, use the HTML Entity Encoder & Decoder.
Related tools
Turn markup into readable text with Remove HTML Tags, change repeated fragments in bulk with Find & Replace Text, or fix spacing and hidden characters with the Text Cleaner.
Frequently asked questions
How do I URL encode text?
Keep the default Encode URL direction and URL component mode, then paste your text. Spaces become %20 and reserved characters such as / ? & = # become percent escapes as you type. Choose Full URL to keep a complete URL's delimiters, or Query parameter value to use + for spaces.
How do I decode a percent-encoded URL?
Choose Decode URL and paste the encoded text. Percent escapes represent UTF-8 bytes: a sequence such as %C3%A9 becomes é. Full URL mode keeps encoded reserved delimiters such as %2F and %26. Pick the same mode that was used to encode the text; Query parameter value also turns + into a space.
What does %20 mean in a URL?
%20 is a percent-encoded space. The two hexadecimal digits are the byte value of the character, and 0x20 is the space character in ASCII and UTF-8. Spaces are not allowed in URLs, so they are written as %20 (or as + in form-encoded query values).
Why are spaces sometimes represented by +?
HTML forms submit data using application/x-www-form-urlencoded, which writes spaces as + and encodes a literal plus sign as %2B. Outside form-encoded query strings, + has no special meaning and spaces must be %20. URL component mode never treats + as a space; Query parameter value mode does.
What is the difference between encodeURI and encodeURIComponent?
encodeURI is meant for a complete URL and leaves delimiters such as : / ? # & = unescaped so the URL keeps its structure. encodeURIComponent is meant for one piece of a URL, such as a path segment or a query value, and escapes those delimiters. Full URL mode uses encodeURI; URL component mode uses encodeURIComponent and additionally escapes ! ' ( ) *.
Can I encode emoji and accented characters?
Yes. Every character is converted to its UTF-8 bytes and each byte becomes one %HH escape, so é becomes %C3%A9 and 😀 becomes %F0%9F%98%80. Text is not normalized: a decomposed e plus combining accent stays e%CC%81, and emoji sequences joined with zero-width joiners keep every part.
Why does %25 sometimes appear in a URL?
%25 is the encoded percent sign. When text that is already percent-encoded is encoded again, each % becomes %25, so %20 turns into %2520. This usually means a value was encoded twice. Decoding removes exactly one layer, so decoding %2520 once gives %20.
Why does decoding sometimes fail?
Decoding fails when a % is not followed by two hexadecimal digits, as in 100% or %ZZ, or when the escapes do not form valid UTF-8, as in %FF or an incomplete sequence like %E0%A4%A. The tool shows an error instead of guessing, and your input is kept so you can fix it. Encoding a literal % first gives %25.
Is my URL or text uploaded or saved?
No. Encoding and decoding run entirely in your browser. Your text is never sent to a server, stored in cookies or local storage, or added to the page address. Pasted URLs are never opened or fetched, and the result is shown as plain text. Only the Copy button writes to your clipboard, when you click it.