URL Encode/Decode
Encode or decode URL components and query strings.
How to Use URL Encode/Decode
- 1
Select Encode or Decode
Choose the Encode tab to percent-encode text for safe use in URLs, or the Decode tab to convert encoded strings back to readable text.
- 2
Enter your text or URL
Paste a URL, query parameter value, or any text containing special characters that need encoding or decoding.
- 3
View the result
The encoded or decoded output appears instantly as you type — spaces become %20, ampersands become %26, and so on.
- 4
Copy the output
Click Copy to grab the result and paste it into your code, browser address bar, or API client.
Key Features
Real-Time Conversion
Output updates as you type, so you can see exactly how each character is encoded or decoded.
Full Unicode Handling
Correctly encodes multi-byte characters, accented letters, CJK text, and emoji using UTF-8 percent-encoding.
Encode & Decode Modes
Switch between percent-encoding and decoding with a single click. Each mode works independently.
One-Click Copy
Copy the output to your clipboard instantly for use in code, API requests, or configuration files.
Common Use Cases
Building Query Strings
Safely encode parameter values before appending them to URLs — essential when values contain spaces, ampersands, or equals signs.
Debugging Encoded URLs
Decode percent-encoded URLs from server logs, analytics tools, or browser address bars to understand what the original values were.
Working with REST APIs
Encode special characters in URL paths and query strings to ensure API requests are well-formed and correctly interpreted by servers.
Frequently Asked Questions
What is URL encoding?▾
URL encoding (percent-encoding) replaces unsafe characters with a percent sign followed by two hex digits — for example, a space becomes %20. This ensures URLs are valid and interpreted correctly by browsers and servers.
When should I use encodeURI vs encodeURIComponent?▾
Use encodeURI for full URLs (it preserves characters like :, /, and ?). Use encodeURIComponent for individual query parameter values (it encodes everything except letters, digits, and a few symbols). This tool uses encodeURIComponent behavior.
Is my data sent to a server?▾
No. All encoding and decoding happens entirely in your browser. Your URLs and data never leave your device.
Can I encode an entire URL with this tool?▾
You can, but be careful — encoding a full URL will also encode the protocol (://), slashes, and query delimiters, which may break the URL. This tool is best suited for encoding individual values within a URL.