Skip to content
Categories
URL Encode / Decode
Encode and decode text to and from URL encoding.
Overview
- Converts text into URL-encoded (percent-encoded) format, or converts a URL-encoded string back into the original text.
- URL query parameters cannot directly contain Japanese text or symbols such as &, =, or spaces, so this converts them into %XX format so they can be safely embedded.
- This behaves the same as encodeURIComponent/decodeURIComponent, so it is intended for encoding a single value, such as a query parameter value, rather than an entire URL.
Usage
- Enter the text you want to encode, or the URL-encoded string you want to decode, into the text area.
- Click the "Encode" or "Decode" button.
- The result is displayed below.
Example
Input
ใใใซใกใฏ World!
Output
%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%20World!
Use Cases
- Encoding just the value portion beforehand when building a URL whose query parameters contain Japanese text or symbols
- Decoding a URL-encoded value received from another system to check the original string
- Converting special characters (such as & or =) found in a web form or link into a form that can be safely handled as a URL
FAQ
Is a space converted to a +?
No. Since this tool uses encodeURIComponent, spaces are converted to %20.
Can I encode an entire query string (key=value&...) as-is?
This tool is designed to encode a single value. If you pass a full string containing & or =, those characters will also be encoded.
What happens if I decode an invalid URL-encoded string?
An error message "The URL encoding format is invalid." is displayed.
Notes
- A space is converted to %20, not a +, following encodeURIComponent's behavior.
- If you pass an entire query string as-is (in the form key=value&key2=value2), the & and = characters will also be encoded. Convert one value at a time instead.
- When decoding, entering a string that is invalid as URL encoding (for example, a % not followed by two valid hex digits) results in an error.
Related Tools
Escape and unescape text for use in HTML.
Convert numbers between binary, octal, decimal, and hexadecimal.
Break a URL down into its individual components.