URL Encoder / Decoder
Encode or decode URL components without sending your data to a server.
Your input is not sent to a server. All processing is performed locally in your browser.
Actions
If you enter a full URL, delimiters such as / ? & and = are encoded as well.
URL components only, up to 1 million UTF-16 code units. Full-URL mode and form-style + decoding are not supported.
Encode and decode URL components
Encode URL components or text containing Unicode, emoji, spaces, and reserved characters, then decode them back to the original text.
When this tool is useful
Encode Japanese text or spaces for use as a URL query parameter value. The tool also encodes delimiters such as /, ?, and & when given a complete URL, so generally enter only the value to encode.
How to use
- Enter a URL component or text, up to 1 million UTF-16 code units.
- Choose URL Encode or URL Decode. Inputs of at least 50,000 UTF-16 code units use a Web Worker; editing, another conversion or clearing cancels the previous task.
- Check the converted result. Focus moves to the output on success or the input on error. Unicode code-point and UTF-8 byte counts are shown.
- Use Move Result to Input to convert in the other direction. Moving the result and clearing can be undone within 10 seconds.
- Copy the current result. Stale results remain visible but cannot be copied or moved until reconverted.
Local processing
The browser encodeURIComponent and decodeURIComponent functions perform the conversion. Your input is not sent to a server. Large conversions run in a browser-side Web Worker.
Unpaired UTF-16 surrogates are rejected before conversion. Malformed percent escapes and percent-encoded bytes that are not valid UTF-8 produce separate errors.
Only URL components are supported, not an encodeURI full-URL mode or form-style conversion between + and spaces. Encoding %20 again produces %2520.
FAQ
Can I enter a full URL?
Yes. Because it is processed as a URL component, delimiters such as /, ?, &, and = are encoded too.
Can I use Japanese text and emoji?
Yes. Japanese text, emoji, and other Unicode characters are supported.
Is a plus sign decoded as a space?
No. This tool preserves + as a plus sign. Use %20 when decoding a space.
What happens with invalid percent encoding?
A % not followed by two hexadecimal digits produces a percent-format error. If the percent triplets are valid but the resulting UTF-8 is incomplete or invalid, a separate UTF-8 error is shown.
What if the text contains invalid Unicode?
An unpaired UTF-16 surrogate produces an invalid Unicode input message, not an unrelated decode error. Ordinary Japanese text and emoji are supported.
How can I inspect whitespace or control characters in the result?
The result stays unchanged. Unicode code-point and UTF-8 byte counts are shown, with a note for whitespace-only or control-character output.
Can I undo clearing or moving a result?
Yes, within 10 seconds. Typing or converting again, or letting the timer expire, cancels the undo option.
Can I convert a long input?
The limit is 1 million UTF-16 code units. At least 50,000 units use a Web Worker. Editing, starting another conversion or clearing cancels the previous task. If Workers are unavailable, long input is rejected rather than processed on the main thread.
What happens to encoded text or plus signs?
Encoding %20 again yields %2520. Decoding preserves + literally and turns %20 into a space. Full-URL parsing and form-style + conversion are not supported.
Is my input sent to a server?
No. Encoding and decoding take place entirely in your browser.