100% free
URL encoder
Mode
Encoding type
For query parameters. Also encodes /, :, ? and & and every other character except A-Z a-z 0-9 - _ . ! ~ * ' ( ).
0 characters
0 characters · 0 encoded characters
Reference table for frequently used special characters in encodeURIComponent mode. encodeURI leaves / ? # : & = unchanged.
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Percent-encoding
Encode and decode a URL in four steps
- Choose 'Encode' or 'Decode'.
- When encoding, pick encodeURIComponent or encodeURI.
- Paste your text or URL. The result appears right away.
- Copy the output, or use 'Swap' to move it into the input of the other mode.
Which encoding do I need?
| Situation | Setting |
|---|---|
| A value after ? or =, for example a search term | Encode with encodeURIComponent |
| A whole URL with accented letters or spaces in the path | Encode with encodeURI |
| A link full of %20 and %C3%A9 that you want to read | Decode |
| Many URLs at once | Bulk mode with one URL per line |
When encoding, the tool shows below the output how many characters it encoded, so you can see right away whether anything changed. Common characters such as space, & and = are listed with their encoding in the reference table below the tool.
Decoding a URL and understanding errors
The decoder turns %20 back into a space and %C3%A9 back into é. By default it leaves a plus sign as it is, following RFC 3986. Some forms use the plus sign for a space. To read it that way, turn on 'Read + as a space (form data)' when decoding.
If the tool reports 'That isn't a valid encoded string', there is a % somewhere without valid digits after it, or an incomplete sequence such as a lone %E4. In bulk mode only the affected line gets an error. The other lines are processed, and the failed line appears in the output at its position, marked '[Error]'. In bulk mode you can also download the result as a file.
Common pitfalls with URL encoding
- Don't encode a URL that is already encoded. %20 would become %2520, because the percent sign gets encoded too.
- If you append UTM parameters with special characters to a link, encode only the value, not the whole link.
- An accented letter such as é becomes two bytes, %C3%A9, because the encoding is based on UTF-8. That is normal and not an error.
- encodeURI leaves characters such as ? and # unencoded. If one of them is part of a value, use encodeURIComponent.
Frequently asked questions
What is URL encoding?
Why is URL encoding necessary?
Which characters get encoded?
What is bulk mode?
What is the difference between encodeURI and encodeURIComponent?
How do I encode spaces in URLs? + or %20?
Is my data stored?
Related tools
Changelog
November 20, 2026
Empty lines in bulk mode, copy notice, more accurate texts
- • Added this English version of the tool.
- • Fixed: In bulk mode, empty lines stay as empty lines, and input and output no longer drift apart. Empty lines at the end are ignored and don't count as a URL.
- • Fixed: If copying to the clipboard fails, the tool shows a message instead of silently doing nothing.
- • Corrected: encodeURIComponent doesn't encode "all" special characters. A-Z a-z 0-9 - _ . ! ~ * ' ( ) stay unchanged.
- • The reference table now states that it applies to encodeURIComponent and that encodeURI leaves / ? # : & = unchanged.
- • The FAQ explains the difference between + and %20.
November 18, 2026
More accurate count, line-by-line bulk output, plus option
- • The count of "encoded characters" now counts characters instead of bytes. An "é" (%C3%A9) is one encoded character.
- • Bulk mode: a failed line appears in the output at its position, marked "[Error]" and with its original text, so input and output match line by line again.
- • New when decoding: the option "Read + as a space (form data)", off by default (RFC 3986).
November 17, 2026
Guide and a more precise FAQ
- • Added a guide with instructions and use cases directly below the tool.
- • Added related tools at the end of the page.
- • The FAQ now separates which characters encodeURIComponent encodes and which ones encodeURI encodes.
Show older versions
December 20, 2025
Bulk mode
- • Encode or decode several URLs at once.
- • One URL per line.
- • Errors are shown per line.
December 17, 2025
Launch
- • Encode URL components (encodeURIComponent).
- • Encode complete URLs (encodeURI).
- • Decode URL strings.
- • Real-time conversion.
- • Overview of encoded characters.
- • Runs entirely in the browser.