Skip to main content

URL encoder

Encode and decode URLs and query parameters. Includes a bulk mode for processing several URLs at once.
Developer tool
Conversion
Choose a mode and enter your URL or text

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

encodeURIComponent
encodeURI
decodeURIComponent
Common URL encodings

Reference table for frequently used special characters in encodeURIComponent mode. encodeURI leaves / ? # : & = unchanged.

Space

Percent-encoding

Reference
Character
␣
Encoded
%20
Ampersand

Percent-encoding

Reference
Character
&
Encoded
%26
Equals sign

Percent-encoding

Reference
Character
=
Encoded
%3D
Question mark

Percent-encoding

Reference
Character
?
Encoded
%3F
Hash

Percent-encoding

Reference
Character
#
Encoded
%23
Slash

Percent-encoding

Reference
Character
/
Encoded
%2F
Colon

Percent-encoding

Reference
Character
:
Encoded
%3A
At sign

Percent-encoding

Reference
Character
@
Encoded
%40
Plus sign

Percent-encoding

Reference
Character
+
Encoded
%2B
Percent sign

Percent-encoding

Reference
Character
%
Encoded
%25
é (e with acute)

Percent-encoding

Reference
Character
é
Encoded
%C3%A9
ñ (n with tilde)

Percent-encoding

Reference
Character
ñ
Encoded
%C3%B1
ü (u with umlaut)

Percent-encoding

Reference
Character
ü
Encoded
%C3%BC
ç (c with cedilla)

Percent-encoding

Reference
Character
ç
Encoded
%C3%A7

Encode and decode a URL in four steps

  1. Choose 'Encode' or 'Decode'.
  2. When encoding, pick encodeURIComponent or encodeURI.
  3. Paste your text or URL. The result appears right away.
  4. Copy the output, or use 'Swap' to move it into the input of the other mode.

Which encoding do I need?

SituationSetting
A value after ? or =, for example a search termEncode with encodeURIComponent
A whole URL with accented letters or spaces in the pathEncode with encodeURI
A link full of %20 and %C3%A9 that you want to readDecode
Many URLs at onceBulk 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

Everything about URL encoding
What is URL encoding?
URL encoding, also called percent-encoding, converts special characters in URLs into a format that can be transmitted safely. Each character is replaced by a percent sign followed by two hexadecimal digits.
Why is URL encoding necessary?
URLs may only contain certain ASCII characters. Special characters such as spaces, accented letters or & have to be encoded so they are transmitted correctly and not read as URL separators.
Which characters get encoded?
Spaces (%20), accented letters such as é (%C3%A9) and all other non-ASCII characters are encoded. With encodeURIComponent, characters such as &, =, ? and # are encoded too. With encodeURI they stay as they are. In both modes, A-Z a-z 0-9 - _ . ! ~ * ' ( ) stay unchanged.
What is bulk mode?
In bulk mode you can encode or decode several URLs at once. Enter one URL per line and the tool processes all of them in one go. Empty lines stay as empty lines, so input and output match line by line. Empty lines at the end of the input are ignored.
What is the difference between encodeURI and encodeURIComponent?
encodeURI encodes a complete URL and leaves URL structure characters such as :, / and ? unencoded. encodeURIComponent also encodes those characters (only A-Z a-z 0-9 - _ . ! ~ * ' ( ) stay as they are) and is meant for query parameters.
How do I encode spaces in URLs? + or %20?
The tool always encodes spaces as %20, anywhere in the URL. Only form data (application/x-www-form-urlencoded), such as the query of a submitted form, uses + for a space. When decoding, the tool therefore reads a + as a space only with the option "Read + as a space (form data)". Otherwise it stays a plus sign.
Is my data stored?
No. The whole conversion runs locally in your browser. Nothing is sent to a server.

Related tools

All tools

Changelog

Latest updates and improvements to the URL encoder
v1.4.0

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.
v1.3.0

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).
v1.2.0

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
v1.1.0

December 20, 2025

Bulk mode

  • • Encode or decode several URLs at once.
  • • One URL per line.
  • • Errors are shown per line.
v1.0.0

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.