Skip to main content
DevBench
%

URL Encode

EncodingOffline-ready

URL Encode percent-encodes any text for safe use in URLs and query strings, converting characters like spaces, &, =, and non-ASCII to their %XX equivalents. Paste a full URL or just a query parameter value, choose between full URL encoding or component encoding, and copy the safe output instantly. Decode percent-encoded strings back to readable text with one click. Runs entirely in your browser.

Related: URL DecodeBase64 EncodeHTML Entity Encode

How to use the URL Encoder

  1. Paste the text you want to encode — a full URL, a query parameter value, or a path segment.
  2. Choose the encoding mode: Component (encodes everything except A–Z a–z 0–9 - _ . ! ~ * ' ( )) or Full URL (preserves :/?#[]@ structural characters).
  3. The percent-encoded output appears instantly on the right.
  4. Click Copy to copy the result, or click Decode to reverse-decode any percent-encoded string.

What is URL encoding?

URL encoding (also called percent-encoding) converts characters that are not allowed or have special meaning in a URL into a %XX format, where XX is the character's hexadecimal UTF-8 byte value. For example, a space becomes %20 and & becomes %26.

Reserved characters in URLs

RFC 3986 reserves characters like : / ? # [ ] @ ! $ & ' ( ) * + , ; = for structural use in URLs. If these characters appear in a query parameter value, they must be percent-encoded so the URL parser does not misinterpret them. Unreserved characters A–Z a–z 0–9 - _ . ~ are safe to use as-is.

encodeURIComponent vs encodeURI