URL Encoder & Decoder
Convert special characters into web‑safe formats instantly. Perfect for developers and SEO professionals fixing broken links or handling sensitive query parameters.
URL Encoder / Decoder
Paste a complete URL to break it down into its components:
| Protocol | — |
| Host | — |
| Port | — |
| Path | — |
| Query String | — |
| Hash | — |
Encode or decode many lines at once. One item per line.
Your last 10 encode/decode operations (stored locally in your browser).
- No history yet. Start encoding or decoding to see your operations here.
Common characters and their percent-encoded equivalents:
| Character | Name | Encoded |
|---|---|---|
(space) | Space | %20 |
! | Exclamation | %21 |
# | Hash / Fragment | %23 |
$ | Dollar | %24 |
& | Ampersand | %26 |
+ | Plus | %2B |
= | Equals | %3D |
? | Question mark | %3F |
/ | Forward slash | %2F |
: | Colon | %3A |
@ | At sign | %40 |
€ | Euro sign | %E2%82%AC |
All processing happens locally — your data never leaves your device.
100% Private & Secure: All encoding and decoding happens locally in your browser via JavaScript. No data is ever sent to any server — ideal for sensitive API keys, tokens, or private parameters.
How to Use This Tool
Select Encode or Decode
Choose Encode to convert special characters into percent‑encoded format, or Decode to revert encoded strings back to readable text.
Enter Your Text
Type or paste your URL or string into the input field. The tool processes it automatically as you type — no need to click any button.
Copy, Download, or Share
Copy the result to your clipboard, download it as a text file, or generate a shareable link that reproduces the same operation on any device.
Go Further with Advanced Tools
Use the URL Parser to break down a URL into components, Batch Mode to process many lines at once, or check the Encoding Reference for common character codes.
Why Use a URL Encoder/Decoder?
Fix Broken Links
URLs with spaces or special characters (&, ?, #) often break in browsers, emails, or markdown. Encoding makes them reliable everywhere.
Safe Query Parameters
Pass values safely through APIs — encode user input before adding it to a query string to prevent injection issues.
UTF-8 & Emoji Ready
Arabic, Urdu, Chinese, Cyrillic, and emojis are all percent‑encoded correctly for cross‑browser compatibility.
Instant, Offline-Friendly
Runs entirely in your browser using vanilla JavaScript. Even works if your internet drops after the page loads.
Two Encoding Modes
Choose encodeURIComponent for query parameter values, or encodeURI to preserve URL structural characters.
Batch Processing
Encode or decode many URLs at once — great for migrating data or processing log files.
encodeURI vs encodeURIComponent
| Character | encodeURI | encodeURIComponent |
|---|---|---|
: / ? # | Preserved | Encoded |
& = + | Preserved | Encoded |
| Space | %20 | %20 |
| Letters, digits | Preserved | Preserved |
| Best for… | Encoding a full URL as a single string | Encoding individual query parameter values |
Frequently Asked Questions
encodeURI preserves characters like : / ? # @ & = that have special meaning in a full URL. encodeURIComponent encodes everything except A‑Z a‑z 0‑9 - _ . ! ~ * ' ( ), making it suitable for query parameter values.Explore Other Developer Tools
JSON Formatter
Pretty print and validate JSON data with syntax highlighting.
Try Tool.htpasswd Generator
Generate secure Apache/Nginx password hashes.
Try ToolIdentity Generator
Generate complete fake identities for testing.
Try ToolBase64 Encoder
Encode and decode Base64 strings and files.
Try ToolHash Generator
Generate MD5, SHA-1, SHA-256 hashes instantly.
Try ToolJWT Debugger
Decode and inspect JSON Web Tokens securely.
Try Tool