🇨🇳 中文

URL Encode Online

Convert text, query strings or parameters to percent-encoded format instantly.

About URL Encoding

What is URL encoding?

URL encoding (percent-encoding) replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits, e.g. space → %20.

Why encode?

  • Query strings or form data may contain spaces, &, =, ?, # — encoding prevents breaking the URL syntax.
  • Non-ASCII characters (中文, emoji) must be encoded to travel safely over HTTP.
  • APIs often require percent-encoded parameters.

Reserved characters

! * ' ( ) ; : @ & = + $ , / ? # [ ] are commonly encoded.

JavaScript quick ref

encodeURIComponent('hello world')  // "hello%20world"
decodeURIComponent('hello%20world') // "hello world"

Privacy note

All conversions run inside your browser — nothing is uploaded to our servers.