URL Encoder/Decoder

Encode and decode URLs with support for special characters, Unicode, and emojis. Choose between encodeURIComponent, encodeURI, or decode mode.

0 characters
0 characters

Encoding Mode Guide

encodeURIComponent: Encodes all special characters except: - _ . ! ~ * ' ( )
Best for: URL parameters, query strings
encodeURI: Preserves: : / ? # [ ] @ ! $ & ' ( ) * + , ; =
Best for: Full URLs with protocol and path
Decode: Converts encoded characters (like %20, %3D) back to their original form
Best for: Reading URL-encoded strings

Real-Time Processing

Instant encoding and decoding as you type or paste URLs.

100% Private

Your URLs never leave your computer.

Unicode Support

Handles all characters including Unicode, emojis, and special symbols.

Examples

Example 1: Encoding a URL Parameter

Input: hello world
Mode: encodeURIComponent
Output: hello%20world

Example 2: Encoding a Full URL

Input: https://example.com/search?q=hello world
Mode: encodeURI
Output: https://example.com/search?q=hello%20world

Example 3: Decoding a URL

Input: name%3DJohn%26age%3D30
Mode: Decode
Output: name=John&age=30

Frequently Asked Questions

What's the difference between encodeURIComponent and encodeURI?

encodeURIComponent encodes all special characters except: - _ . ! ~ * ' ( ). It's ideal for encoding URL parameters. encodeURI preserves URL structure characters like :/?#[]@!$&'()*+,;= and is designed for encoding full URLs.

How do I encode a URL?

Simply paste your URL or text into the input field, select your encoding method (encodeURIComponent or encodeURI), and the encoded result will appear instantly below.

How do I decode a URL?

Switch to 'Decode' mode, paste your URL-encoded string (containing %20, %3D, etc.), and the decoded result will appear below.

Is my data secure?

Yes! All encoding and decoding happens entirely in your browser. Your URLs never get sent to any server, ensuring complete privacy and security.

Can I encode special characters and Unicode?

Absolutely! This tool handles all special characters, symbols, and Unicode characters (including emojis) correctly using native browser encoding functions.