URL Encoder & Decoder
Encode and decode URLs and query strings instantly. Handles special characters and Unicode.
Text to Encode
Encoded URL
Input: 0 chars Output: 0 chars Encoded chars: 0
Common URL Encoded Characters
Character Encoded Description
space %20 or + Space character
! %21 Exclamation mark
# %23 Hash/pound sign
$ %24 Dollar sign
& %26 Ampersand
' %27 Single quote
+ %2B Plus sign
/ %2F Forward slash
= %3D Equals sign
? %3F Question mark
Privacy First: All encoding/decoding happens locally in your browser. Your URLs never leave your device.
What is URL Encoding?
URL encoding, also known as percent encoding, converts characters into a format that can be safely transmitted over the internet. Special characters like spaces, ampersands, and question marks are replaced with a percent sign followed by their hexadecimal ASCII value (e.g., space becomes %20). This ensures URLs are valid and don't break when containing special characters.
encodeURIComponent vs encodeURI
- encodeURIComponent: Encodes all special characters including /, ?, &, and =. Use this for encoding query parameter values.
- encodeURI: Preserves URL structure characters (://?#). Use this for encoding complete URLs while keeping them functional.
When to Use URL Encoding
- Passing data in URL query strings
- Encoding form data for HTTP requests
- Creating safe URLs with user-generated content
- Building API requests with special characters
- Handling international characters in URLs
Related Utilities
Explore our other free developer tools: JSON Formatter, Base64 Encoder/Decoder, UUID Generator, and Password Generator.