URL Encoder / Decoder
Percent-encode text for safe URL use, or decode URL-encoded strings
Text / URL to Encode
Encoded Output
Common Percent-Encoded Characters
Space → %20
! → %21
# → %23
& → %26
= → %3D
? → %3F
@ → %40
+ → %2B
What is URL Encoding?
URLs can only contain certain ASCII characters. Special characters (spaces, punctuation, non-ASCII) must be percent-encoded — replaced with % followed by two hex digits representing the character's UTF-8 byte value. For example, a space becomes %20, and © becomes %C2%A9.
This tool uses JavaScript's encodeURIComponent(), which encodes everything except letters, digits, and -_.!~*'(). Use this when encoding a query parameter value. If you need to encode a full URL (preserving /, ?, #), use encodeURI() instead.
lightbulb Example
Encode "hello world & more?":
1Space → %20, & → %26
2? → %3F
hello%20world%20%26%20more%3F