Utility Workspace
URL Encode & Decode
Encode or decode URLs instantly — type on either side.
BidirectionalInstant resultNo limitsDev ready
Developer Snippets
Ready-to-use examples in multiple languages
Switch between snippets, inspect the highlighted code, and copy the version that fits your stack.
Code Preview
Python
python12 lines
import urllib.parse
# Define URL
original_url = "https://example.com/?name=John Doe"
# Encode URL
encoded_url = urllib.parse.quote(original_url)
print(encoded_url)
# Decode URL
decoded_url = urllib.parse.unquote(encoded_url)
print(decoded_url)Tool Guide
What is URL Encoding?
URL encoding is a method to represent special characters in a URL by replacing them with encoded counterparts. This ensures that the URL remains valid and does not interfere with the structure of the web address.
Practical Flow
How to Use This Tool
- 1Encode Data (Left Side): Enter your text in the left text box to encode it for a URL.
- 2Decode Data (Right Side): Enter your URL-encoded text in the right text box to decode it.
- 3Get Result: The result will be displayed on the opposite side, ready for you to copy and use.
Reference
Example
- Encoding: If you have a text like Hello, World!, encoding it will produce Hello%2C%20World%21
- Decoding: If you have a URL-encoded text like Hello%2C%20World%21, decoding it will produce Hello, World!
Keep In Mind
Important Note
This tool is designed for general use. While it's handy for understanding URL encoding, exercise caution with sensitive data.
Explore More
Base64 EncodeConvert plain text or binary data into Base64 format instantly.
Base64 DecodeDecode Base64 strings back to readable text or binary data.
Base64 ImageConvert images to Base64 strings and decode Base64 back to images.
HTML Entity Encode/DecodeConvert HTML special characters to entities and back.
Hex ↔ ASCIIConvert between hexadecimal and ASCII text representations.
JWT DecodeInspect and verify JSON Web Token payloads and headers.
UUID GeneratorGenerate UUID/GUID v1, v4, and v5 identifiers instantly.
Hash GeneratorGenerate MD5, SHA-1, SHA-256, SHA-512 hashes from any text.
