URL Encoder & Decoder
Encode or decode Chinese, spaces, and special characters in URLs and query params with percent-encoding.
How to use URL encode & decode
URL encoding turns Chinese, spaces, and reserved characters into safe percent-encoded form; decoding restores them. Useful for diagnosing garbled query params, callback URLs, and API requests.
- Encode:Converts special characters to a URL-safe format, e.g. spaces become %20
- Decode:Restores percent-encoding to readable Chinese and symbols
- Common uses:Query params, redirect URLs, API signatures, and log troubleshooting
- Privacy:Input is converted only in your browser
FAQ
How is this different from Base64?
URL encoding keeps URLs and params safe for transport while preserving URL structure; Base64 is a general data representation without URL semantics. They serve different purposes.
What happens to spaces?
With encodeURIComponent it usually becomes %20; in application/x-www-form-urlencoded form data, a plus (+) often represents a space.
Can I encode more than once?
Yes, but each pass re-encodes percent signs and lengthens the string. Seeing %2520 usually means %20 was encoded again — decode the same number of times.