Text to Encode0 chars
Encoded Output
Common percent-encoded characters
Quick reference for URL encoding
Space%20
!%21
#%23
$%24
%%25
&%26
+%2B
,%2C
/%2F
:%3A
=%3D
?%3F
@%40
[%5B
]%5D
한글%ED%95%9C...
encodeURI vs encodeURIComponent
encodeURI
Encodes a complete URL. Preserves / ? & = : @ # $ and other URL-structural characters. Use when encoding a full URL that should remain navigable.
encodeURIComponent
Encodes everything except A-Z a-z 0-9 - _ . ! ~ * ' ( ). Use for encoding individual query parameter names and values.
+ vs %20
In query strings, + traditionally means a space (HTML form encoding). In path segments, %20 is the correct space encoding. This tool uses %20.
Unicode support
Non-ASCII characters (Korean, Chinese, Arabic, emoji) are encoded as UTF-8 byte sequences. For example, 한 becomes %ED%95%9C.
Frequently Asked Questions
What is URL encoding?+
URL encoding (percent-encoding) converts characters that are not allowed or have special meaning in URLs into a safe format: a % followed by two hex digits representing the character's UTF-8 byte value. For example, a space becomes %20.
When should I use encodeURIComponent vs encodeURI?+
Use encodeURIComponent for individual query parameter values — it encodes ?, &, = and / which are structural URL characters. Use encodeURI when encoding a full URL where you want those structural characters to remain as-is.
Why does & need to be encoded in URLs?+
The & character is used to separate query parameters (key=value&key2=value2). If a parameter value itself contains &, it must be encoded as %26 to prevent it from being interpreted as a parameter separator.
Is my data sent to a server?+
No. All encoding and decoding uses JavaScript's built-in encodeURIComponent, encodeURI, decodeURIComponent, and decodeURI functions — entirely in your browser.
Related Tools