URL Encoder & Decoder
Encode URLs for safe transmission or decode URL-encoded strings. All processing happens locally in your browser.
Best for query parameters and form data (encodeURIComponent)
Plain Text
URL Encoded
Common URL Encodings Reference
Space
%20 or +
!
%21
#
%23
$
%24
%
%25
&
%26
=
%3D
?
%3F
What is URL Encoding?
URL encoding, also known as percent encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI). It replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.
When to Use URL Encoding
- Query Parameters: Encode values in URL query strings
- Form Data: Encode data in application/x-www-form-urlencoded format
- Special Characters: Handle spaces, ampersands, and other special characters
- API Requests: Properly format URL parameters for APIs
- Secure Transmission: Ensure data integrity in URLs
Common Encoded Characters
- Space → %20 or +
- ! → %21
- # → %23
- $ → %24
- % → %25
- & → %26
- = → %3D
- ? → %3F
Important Notes
- Not all characters need encoding - letters, numbers, and some symbols are safe
- URL encoding is different from Base64 encoding
- Use encodeURIComponent() for query parameters, encodeURI() for full URLs
- Always encode user input before adding to URLs