URL Encoder
/ Decoder
Encode and decode URLs instantly in your browser. Supports multiple encoding modes, URL component parsing, and double-encoded detection — all processing happens client-side.
What Is URL Encoding?
URL encoding, formally known as percent-encoding, is a mechanism for representing characters in a URI that are not allowed or have special meaning. Reserved characters like &, =, ?, and # are replaced with a percent sign followed by two hexadecimal digits (e.g., %26 for &). Non-ASCII characters are first encoded as UTF-8 bytes and then each byte is percent-encoded.
Our URL Encoder / Decoder handles both directions instantly in your browser. Paste a URL or any text, choose an encoding mode, and get the result as you type — no sign-up, no server upload, no data collection.
The tool offers three encoding strategies: encodeURIComponent for full encoding of individual values, encodeURI for encoding a complete URL while preserving its structure, and a Custom mode that lets you pick exactly which characters to encode via checkboxes.
The decoder auto-detects double-encoded URLs and offers a one-click fix. When the input looks like a URL, a built-in parser breaks it down into protocol, host, port, path, query parameters (with decoded values), and fragment — everything runs on your device.
Discover Features
Multiple encoding modes, URL parsing, double-encoding detection, and complete privacy — all on your device
Bi-Directional Conversion
Switch between Encode and Decode with a single tab click. Both directions process input in real time with debounced live output, so you see results as you type.
Three Encoding Modes
Choose encodeURIComponent for full encoding, encodeURI to preserve URL structure characters, or Custom mode to hand-pick exactly which characters get percent-encoded.
URL Component Parser
When the input looks like a URL, the tool automatically parses and displays protocol, host, port, path, query parameters (as a key-value table with decoded values), and fragment.
Double-Encoding Detection
The decoder automatically detects double-encoded URLs (e.g. %2520 instead of %20) and offers a one-click "Decode Again" button to peel off the extra layer of encoding.
Copy, Download & Swap
Copy results to the clipboard, download as a .txt file, or swap input and output to instantly reverse the operation — all with character and byte-size stats shown for both fields.
100% Private & Secure
All encoding and decoding happens entirely in your browser. Nothing is sent to any server. Close the tab and nothing remains — safe for API keys, tokens, and sensitive query strings.
How to Use
Four steps: choose a mode, enter input, pick encoding, and copy or download
Choose Encode or Decode
Select the Encode tab to percent-encode text or a URL, or the Decode tab to convert a percent-encoded string back to readable text.
Enter Your Input
Type or paste your text, URL, or encoded string into the input area. The tool begins processing as you type with live, debounced output.
Pick an Encoding Mode
In Encode mode, choose encodeURIComponent (most common), encodeURI (preserves structure), or Custom to select specific characters. Decode mode auto-detects the encoding.
Copy or Download the Result
Copy the output to your clipboard, download it as a .txt file, or hit Swap to feed the result back as input in the opposite mode.
Use Cases
Common scenarios where URL encoding and decoding saves time and prevents bugs
Building Query Strings
Safely encode parameter values before appending them to URLs. Ensures special characters like &, =, and spaces don't break the query string structure.
Internationalised URLs
Encode non-ASCII characters (CJK, Arabic, emoji) for use in URLs. Percent-encoding guarantees safe transport through systems that only accept ASCII.
API & Webhook Debugging
Decode encoded URLs from server logs, webhook payloads, or redirect chains to quickly inspect the actual query parameters and path segments.
OAuth & Auth Redirects
Encode redirect_uri and state parameters for OAuth flows. Decode callback URLs to verify the parameters your identity provider returned.
SEO & Analytics Tags
Inspect and fix UTM parameters, campaign tags, and tracking URLs. Decode encoded tracking links to verify that campaign metadata is correct before launch.
Email & Form Submissions
Decode application/x-www-form-urlencoded data from HTML form submissions, email mailto links, or POST body payloads to read the original field values.
Free vs Paid — URL Encoder
Get started free, upgrade when you need more power.
Unlock the Full Power of URL Encoder
Remove daily limits, process larger files up to 500 MB, enable batch processing, and get priority support.
Developer Tools includes:
- 13 developer & utility tools
- Unlimited daily uses
- No file size limits
- All output formats
Also available in the All Tools Bundle
FAQ
Frequently asked questions about the URL Encoder / Decoder
Q1. What is URL encoding (percent-encoding)?
Q2. What is the difference between encodeURIComponent and encodeURI?
Q3. Is my data safe?
Q4. What is a double-encoded URL?
Q5. How does the Custom encoding mode work?
Q6. How does the URL parser work?
Q7. Can I encode non-ASCII characters like emoji or CJK?
Q8. Why does the tool encode live as I type?
Related Tools
Encode and decode URLs, then try these other utility tools