URL Encode & Decode
Encode special characters in URLs for safe transmission or decode encoded URLs to read the original text. All encoding and decoding runs locally in your browser.
How it works
What is URL Encoding?
URL encoding (percent encoding) converts special characters into a format that can be safely transmitted in URLs. Characters like spaces, ampersands, and non-ASCII characters are replaced with percent signs followed by hexadecimal codes.
How to Use the URL Encoder/Decoder
Enter your text in the input field and click "Encode" to convert special characters to URL-encoded format. Click "Decode" to convert an encoded URL back to readable text. The result appears in the output field, ready to copy.
Example 1: Encoding Special Characters
Input: Hello World!
Encoded: Hello%20World%21
The space becomes %20 and the exclamation mark becomes %21.
Example 2: Encoding URLs with Parameters
Input: https://example.com/search?q=hello world&lang=en
Encoded: https://example.com/search?q=hello%20world&lang=en
Spaces in query parameters must be encoded to %20 for proper URL handling.
Example 3: Decoding
Input: Hello%20World%21
Decoded: Hello World!
Common Encoded Characters
- Space: %20
- Exclamation mark: %21
- Hash: %23
- Percent: %25
- Ampersand: %26
- Plus: %2B
- Equals: %3D
- Question mark: %3F
- At sign: %40
When to Use URL Encoding
URL encoding is essential when:
- Passing parameters in URLs
- Including special characters in query strings
- Handling user input in URLs
- Creating API endpoints with dynamic values
- Ensuring cross-browser compatibility
Privacy & Security
All encoding and decoding happens locally in your browser. Your data never leaves your device, ensuring complete privacy and security.