Why URLs are encoded
A web address may only contain a small set of characters: unaccented letters, digits and a few signs. Some signs also have a job: / separates folders, ? starts the parameters, & separates them, = joins a name to its value and # marks a place in the page. Anything else, such as a space, an accent, an emoji or an & that is part of a value, must be encoded: each byte is written as % followed by two hexadecimal digits. A space becomes %20 and é becomes %C3%A9, its two bytes in UTF-8.
This tool encodes and decodes as you type, tells you exactly what is wrong with text that cannot be decoded, and reads a full URL into its parts. Everything happens in your browser.

On the screenshot, with an example address:
- What you are encoding: part of a URL, a whole URL or form data.
- The result, updated as you type.
- The parts of a URL, decoded: here the path shows café instead of caf%C3%A9.
- The parameters, which you can change, add or remove.
Which style to choose
- Part of a URL is for a value that goes inside an address, such as a search term or a parameter value. Everything that is not a letter, a digit or
- . _ ~is encoded, so an&or a/in the value cannot break the address. It matches JavaScript’sencodeURIComponent, with! ' ( ) *encoded too, as RFC 3986 recommends. - A whole URL is for a complete address that contains spaces or accents. Its structure is kept, and so are characters that are already encoded, so the address still works.
- Form data is the way browsers send forms and the way many sites write their parameters: spaces become
+.
%20 or +?
Both can stand for a space, but not everywhere. + means a space only in the parameters of an address and in form data; in the path, a + is a real plus sign. %20 means a space everywhere, which makes it the safer choice when you encode. When you decode with “Part of a URL”, plus signs are kept as they are, and the tool tells you if they probably stand for spaces.
Double encoding
If text is encoded twice, % itself gets encoded as %25: a space ends up as %2520 instead of %20, and the page or the file is not found. When a decoded result still looks encoded, the tool says so and offers to decode it again.
Reading a URL
Paste a full address in “Read a URL” to see its scheme, domain, port, path and fragment, and each parameter with its value decoded. You can change, add or remove parameters, and the address is rebuilt for you to copy. The address is only read, never opened.
- The port is shown even when the address does not write it: 443 for HTTPS, 80 for HTTP.
- The fragment, after
#, never leaves your browser: servers do not receive it. - A domain starting with
xn--is an international domain written in the form the domain name system uses.
Frequently asked questions
Why do I get an error when decoding?
Either a % is not followed by two hexadecimal digits (0 to 9, A to F), or the bytes do not form UTF-8 text, which happens with addresses made by old software in another character set. The message gives the position; “Decode anyway” decodes the rest and leaves the faulty parts visible.
Is my text sent anywhere?
No. Encoding, decoding and reading are done in your browser, and nothing is kept when you close the page.
What about Base64?
Base64 is a different encoding, used for files and binary data rather than addresses. The Base64 encoder and decoder handles it, including the URL-safe variant.