URL Encoder/Decoder Tool

Online URL encoding and decoding tool with Chinese URL support and special character handling

Usage Instructions

  • URL Encode/Decode: Uses encodeURI/decodeURI, preserves URL special characters (like :, /, ?, &, =)
  • Component Encode/Decode: Uses encodeURIComponent/decodeURIComponent, encodes all special characters
  • Component encoding is suitable for encoding URL parameter values, while URL encoding is for encoding entire URLs
  • Chinese characters will be encoded as UTF-8 percent-encoded format

Encode and decode URLs using encodeURIComponent / decodeURIComponent rules, so Chinese text, spaces and reserved characters survive a round trip.

encodeURI vs encodeURIComponent

The first leaves structural characters (: / ? # & =) intact and suits a whole URL; the second encodes them too and suits a single parameter value. Mixing them up produces truncated parameters or links that will not open. This tool defaults to the parameter-value rules.

What all those % signs mean

URLs can only carry ASCII safely, so non-ASCII characters are split into UTF-8 bytes and each byte becomes %XX. A Chinese character usually turns into three percent-encoded bytes — that is correct, and decoding restores it.

Frequently asked questions

Why does a plus sign decode to a space?
In application/x-www-form-urlencoded, + means space. If the value really contains a plus, encode it as %2B.
Can I encode an entire link?
Yes, but decide first whether you are encoding the whole URL or one of its values — the rules differ.
Is anything uploaded?
No, encoding and decoding happen entirely on the device.