URL Encoder/Decoder
Encode or decode URLs and query string components instantly — supports encodeURIComponent, decodeURIComponent, and full URL encoding.
How to use URL Encoder/Decoder
-
Choose your encoding mode
Select Encode (Component) to encode a single query string value or path segment, Encode (Full URL) to encode a complete URL while preserving structural characters, or Decode to reverse either operation.
-
Enter or paste your input
Type or paste your text into the input panel. The output updates in real time as you type — no button click needed.
-
Review the output
The encoded or decoded result appears instantly in the output panel. Spaces become %20 or +, special characters become their percent-encoded equivalents.
-
Swap input and output
Click the swap button to flip the input and output panels and switch direction — useful when you want to re-encode or re-decode.
-
Copy the result
Click Copy to copy the encoded or decoded output to your clipboard with one click.
URL Encoder/Decoder FAQ
What is the difference between encodeURIComponent and encodeURI?
When should I use Encode (Component) vs Encode (Full URL)?
What does percent-encoding mean?
Is my data uploaded anywhere?
Does this support Unicode, emoji, and non-ASCII characters?
What happens if I try to decode an invalid percent-encoded string?
Can I use this to encode query string parameters for API requests?
What is the difference between URL encoding and Base64 encoding?
Background
URL Encoder & Decoder handles all three common URL encoding scenarios. Use Encode (Component) to percent-encode individual query string values, path segments, or any string that must be safe to embed in a URL — this is the most common use case when building API requests, form parameters, or constructing URLs programmatically. Use Encode (Full URL) when you have a complete URL that you want to ensure is valid, preserving structural characters like :, /, ?, and &. Use Decode to reverse either operation.
Under the hood, the tool uses the native browser functions encodeURIComponent, encodeURI, decodeURIComponent, and decodeURI — the same functions JavaScript developers call in their own code. The output is instant, updates as you type, and handles the full Unicode character set including emoji, CJK characters, and accented Latin letters via the standard UTF-8 percent-encoding scheme.
All encoding and decoding runs entirely in your browser. Nothing is uploaded or transmitted. Useful for debugging broken URLs, building query strings, fixing encoding issues in API responses, or encoding user input before embedding it in a URL.
Related tools
Base64 Encoder/Decoder
Encode text or files to Base64 or decode Base64 strings back to plain text — real-time, fully in your browser.
JSON Formatter
Format, validate, and minify JSON instantly — with configurable indentation, error location, and tree view.
Hash Generator
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text or files instantly in your browser.
JWT Decoder
Decode and inspect JWT tokens — view header, payload, claims, and expiry status without sending data to any server.