URL Encoder/Decoder Tool
Easily encode or decode URLs to make them safe for transmission over the internet. Convert special characters to percent-encoded format and vice versa.
%20, & becomes %26, etc.
🔒 Working with sensitive text or files online? NordVPN keeps your connection private and encrypts it in one click — Hide My Activity and Secure My Connection →
What is URL Encoding/Decoding?
URL encoding (also called percent-encoding) is a mechanism for encoding information in a Uniform Resource Identifier (URI). URLs can only contain certain characters from the standard ASCII character set. Any character outside this set must be encoded.
Original:
https://example.com/search?q=hello world&category=web designEncoded:
https://example.com/search?q=hello%20world&category=web%20design
URL decoding is the reverse process – converting percent-encoded characters back to their original form.
Common URL Encoded Characters
| Character | Encoded | Description |
|---|---|---|
| Space | %20 or + |
Space character |
| ! | %21 |
Exclamation mark |
| “ | %22 |
Quotation mark |
| # | %23 |
Number sign |
| $ | %24 |
Dollar sign |
| % | %25 |
Percent sign |
| & | %26 |
Ampersand |
| + | %2B |
Plus sign |
| , | %2C |
Comma |
| / | %2F |
Forward slash |
| : | %3A |
Colon |
| = | %3D |
Equal sign |
| ? | %3F |
Question mark |
| @ | %40 |
At sign |
When to Use URL Encoding/Decoding
🔗 API Development
Encode parameters before sending them in API requests to ensure special characters don’t break the URL structure.
🔍 Search Queries
Search terms containing spaces or special characters need to be encoded when passed as URL parameters.
📊 Analytics Tracking
UTM parameters and tracking codes often contain special characters that must be properly encoded.
🌐 Web Development
Creating dynamic URLs with query strings, handling form submissions, and processing user input.
📧 Email Marketing
Encode URLs in email campaigns to ensure links work correctly across all email clients.
🔐 Security
Prevent URL injection attacks by properly encoding user-supplied data in URLs.
How to Use the URL Encoder/Decoder
- Enter or paste your URL in the text area above.
- Choose an action:
- Click “Encode URL” to convert special characters to percent-encoded format
- Click “Decode URL” to convert percent-encoded characters back to normal
- Copy the result using the “Copy Result” button.
- The tool shows you the number of characters and encoded characters in real-time.
Input:
https://site.com/page?name=John [email protected]After Encoding:
https://site.com/page?name=John%20Doe&email=john%40example.com
Frequently Asked Questions
URL Encoding Examples
| Original URL | Encoded URL |
|---|---|
| https://example.com/search?q=hello world | https://example.com/search?q=hello%20world |
| https://site.com/[email protected] | https://site.com/page?user=john%40doe.com |
| https://api.com/data?filter=price>100 | https://api.com/data?filter=price%3E100 |
| https://shop.com/item?name=T-Shirt & Jeans | https://shop.com/item?name=T-Shirt%20%26%20Jeans |
| https://site.com/path?redirect=/home/user | https://site.com/path?redirect=%2Fhome%2Fuser |