URL Encode / Decode
Encode or decode URLs and query parameters instantly. Supports full URL encoding (encodeURI) and component encoding (encodeURIComponent).
Common URL Encodings
| Character | Encoded | Description |
|---|---|---|
| %20 or + | Space | |
| ! | %21 | Exclamation mark |
| # | %23 | Hash / Fragment |
| $ | %24 | Dollar sign |
| & | %26 | Ampersand |
| ' | %27 | Apostrophe |
| ( | %28 | Open parenthesis |
| ) | %29 | Close parenthesis |
| + | %2B | Plus sign |
| , | %2C | Comma |
| / | %2F | Slash |
| : | %3A | Colon |
| = | %3D | Equals sign |
| ? | %3F | Question mark |
| @ | %40 | At sign |
encodeURI vs encodeURIComponent
encodeURI preserves URL-structural characters like :, /, ? and #. Use encodeURIComponent when encoding individual query parameter values that may contain those characters.
Why percent-encode?
URLs can only contain ASCII characters. Percent-encoding converts unsafe characters (spaces, unicode, special symbols) into a portable format that works across all browsers and servers.
Common pitfalls
Double-encoding happens when you encode an already-encoded string. Spaces can be encoded as %20 or + depending on context. Always decode before re-encoding to avoid issues.
How to Use URL Encoder / Decoder
The URL Encoder/Decoder tool lets you percent-encode or decode strings for safe use in URLs, query parameters, and form data. It handles all reserved and special characters according to RFC 3986. Run it entirely in your browser with no data leaving your machine.
Open the URL Encoder Tool
Navigate to the URL Encoder/Decoder page from the tools menu. The interface provides separate sections for encoding and decoding operations.
Paste or Type Your Text
Enter the string you want to encode or decode into the input text area. This could be a full URL, a query parameter value, or any arbitrary text containing special characters.
Select the Operation
Choose between Encode or Decode mode. Encoding converts special characters to percent-encoded equivalents, while decoding reverses the process back to readable text.
View the Result
The output appears instantly in the result area. Encoded output will show percent-encoded characters like %20 for spaces, %26 for ampersands, and so on.
Copy the Output
Click the copy button to place the encoded or decoded result on your clipboard, ready to paste into your code, API client, or browser address bar.
Common Use Cases
Building API Query Strings
Safely encode parameter values containing special characters before appending them to API endpoint URLs to prevent broken requests.
Debugging Malformed URLs
Decode percent-encoded URLs to inspect their readable form and identify issues with improperly encoded characters or double-encoding.
Handling Internationalized URLs
Encode non-ASCII characters such as accented letters, CJK characters, or emojis so they can be safely transmitted in URLs.
Form Data Processing
Encode or decode application/x-www-form-urlencoded data when testing or debugging HTML form submissions and POST request bodies.
Pro Tips
- -Remember that spaces can be encoded as %20 or + depending on context; this tool uses %20 which is correct for URL paths and query values.
- -Double-encoding is a common mistake. If your output looks like %2520, you have likely encoded an already-encoded string.
- -Use this tool to debug URLs that contain international characters or emojis that need proper percent-encoding.
- -When building REST API queries, always encode parameter values individually rather than encoding the entire URL.
You might also like
Ping Tool
Measure response time and availability of any URL or domain.
CybersecurityXSS Payload Encoder
Encode payloads to test and prevent cross-site scripting vulnerabilities.
CybersecurityRoman Numeral Converter
Convert between Roman numerals and decimal numbers.
MathJSON Formatter
Format, validate and beautify JSON data instantly.
Developer