URL Encoder / Decoder
Encode and decode URLs instantly. Your text never leaves your browser.
Encode or Decode URL
No output yet
Paste a URL or text and click Encode or Decode to get started.
What this tool does not do
- Uses encodeURIComponent (component encoding) by default. Enable Strict mode for full RFC 3986 compliance.
- Detects likely double-encoded input and warns before encoding.
- Validates percent sequences on decode and rejects malformed input.
How It Works
Paste your URL
Enter or paste any URL or text into the input area.
Click Encode or Decode
Convert special characters to URL-safe format or decode them.
Copy or download
Grab the result instantly or save it as a file.
Frequently Asked Questions
What is URL encoding?
URL encoding converts special characters into a format that can be safely transmitted in URLs. For example, spaces become %20 and & becomes %26.
When do I need to encode a URL?
You need to encode URLs when they contain special characters like spaces, ampersands, question marks, hashes, or non-ASCII characters.
What is the difference between encodeURIComponent and encodeURI?
encodeURIComponent escapes all special characters. encodeURI preserves characters that have special meaning in URIs like /, ?, &, #.
Is my text uploaded to a server?
No. All processing happens entirely in your browser. Your text never leaves your device.