URL Encoder/Decoder
Encode and decode text for URLs and query strings using percent encoding. Perfect for web developers and handling special characters in URLs.
Reserved (Full URL mode): : / ? # [ ] @ ! $ & ' ( ) * + , ; =
About URL Encoder/Decoder
Our free URL Encoder/Decoder tool helps you convert text to and from URL-safe format using percent encoding. This is essential for web development when handling special characters in URLs, query strings, and form data.
How to Use
- Type or paste your text into the input area above.
- Choose between Full URL Mode (preserves URL structure) or Component Mode (encodes everything for query parameters).
- Click Encode URL to convert special characters to percent-encoded format.
- Click Decode URL to convert percent-encoded text back to readable format.
- Use Copy Result to copy the output to your clipboard.
- Click Clear to reset both fields.
Encoding Modes Explained
Full URL Mode: Use this when encoding complete URLs. Preserves URL structure characters like : / ? # [ ] @ as they have special meaning in URLs.
Component Mode: Use this for encoding query parameter values or path segments. Encodes all special characters including those reserved for URL structure.
Common Use Cases
Query Parameters: Convert "hello world" to "hello%20world" for use in URLs.
Special Characters: Encode symbols, spaces, and non-ASCII characters for web compatibility.
API Requests: Properly format data for GET requests and REST APIs.
Debugging: Decode encoded URLs to read and understand their structure.
Frequently Asked Questions
Is my data sent to a server?
No. All encoding and decoding happens entirely within your browser. Your text is never transmitted to our servers or stored anywhere.
What's the difference between encodeURI and encodeURIComponent?
encodeURI is designed for full URLs and preserves characters with structural meaning (: / ? # etc.). encodeURIComponent is for individual URL components and encodes all special characters.
What characters get encoded?
Characters outside the unreserved set (A-Z, a-z, 0-9, -, _, ., ~) are encoded as %XX where XX is the hexadecimal value. Spaces become %20 or + in form data.
Can I decode any percent-encoded string?
Yes, as long as the encoding follows the standard format (%XX where XX are valid hex digits). Malformed encoded sequences will be preserved as-is.
Does this handle Unicode characters?
Yes! Modern browsers encode Unicode characters using UTF-8 multi-byte sequences. For example, "Ç" becomes "%C3%87".