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.

Characters: 0 | Encoded characters: 0
✓ Copied to clipboard!
💡 Quick Tip: URL encoding converts special characters into a format that can be transmitted over the Internet. Spaces become %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 →

Case Converter Online Tool URL Encoder/Decoder - Free Online Tool

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.

Example:
Original: https://example.com/search?q=hello world&category=web design
Encoded: 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

  1. Enter or paste your URL in the text area above.
  2. 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
  3. Copy the result using the “Copy Result” button.
  4. The tool shows you the number of characters and encoded characters in real-time.
Example Usage:

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 (percent-encoding) is specifically designed for URLs and encodes only special characters that aren’t allowed in URLs. Base64 encoding converts any data into a string of ASCII characters but isn’t specifically designed for URLs. URL encoding is the correct choice for URLs and query parameters.

You should only encode the parameter values, not the entire URL structure. The protocol (http://), domain (example.com), and path separators (/) should remain unencoded. Only encode query parameter values after the “?” and “&” symbols.

Both %20 and + can represent spaces in URLs, but they’re used in different contexts. %20 is the standard URL encoding for spaces and works everywhere. The + symbol is mainly used in query strings (application/x-www-form-urlencoded format). Modern best practice is to use %20 for consistency.

URL encoding is not a security mechanism or encryption. It’s simply a way to safely transmit data in URLs. Encoded URLs are easily decoded, so never use URL encoding to hide sensitive information. For security, use HTTPS and proper authentication mechanisms.

Yes! Our tool properly encodes Unicode characters including Chinese, Arabic, Cyrillic, emoji, and other special characters. They will be converted to their UTF-8 percent-encoded representation (e.g., “你好” becomes “%E4%BD%A0%E5%A5%BD”).

Yes! Our URL encoder/decoder tool is completely free to use with no registration required. You can encode and decode unlimited URLs without any restrictions.

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