URL Encode / Decode

👨‍💻 Developer Tools

Percent-encode text for use in URLs, or decode an encoded URL back to readable text. Also parses query strings.

Parse a URL’s query string

🔒 This tool runs entirely in your browser. Nothing you enter or upload is sent to our servers.

How to use the URL Encode / Decode

  1. Paste text or a URL and click Encode or Decode.
  2. Use Component mode for a single value (encodes / ? & = too) or URL mode to keep a full address intact.
  3. Paste a full URL in the parser to see each query parameter decoded.

About this tool

URLs can only contain a limited set of ASCII characters. Everything else — spaces, accented letters, emoji, and reserved characters like & and ? when used as data — must be percent-encoded as %XX byte values of its UTF-8 form. A space becomes %20 (or + in form data).

Frequently asked questions

What’s the difference between encodeURI and encodeURIComponent?

encodeURIComponent (Component mode) encodes everything except letters, digits and – _ . ! ~ * ‘ ( ). encodeURI (URL mode) leaves URL structure characters like : / ? & = # intact so a whole URL stays valid.

Why do I see + instead of %20 for spaces?

HTML forms (application/x-www-form-urlencoded) use + for spaces. This tool decodes both; tick “form style” to encode spaces as +.

Is double-encoding a problem?

Yes — encoding an already-encoded string turns %20 into %2520. Decode first if your input already contains % sequences.