URL encode
Encode
Percent-encode or decode URL components, including Chinese and spaces.
Enter text to see percent-encoding.
How to use
Switch Encode and Decode at the top. On Encode, paste a query value, Chinese, or spaces to get percent-encoding. On Decode, paste a string like %E4%B8%AD%E6%96%87 to restore it. The two tabs keep separate input. This follows URL-component rules, not whole-URL encoding.
FAQ
Does this encode a full URL?
- No. It encodes a component such as a query value. Spaces, Chinese, and & become percent-encoded.
How is + handled?
- On decode, + is treated as a space. On encode, spaces become %20.
Why does decoding fail?
- Usually % is not followed by two hex digits, or the string was cut off.
Can I encode more than once?
- Yes, but encoding already-encoded text adds another layer. Decode once if you need the original.