URL Encoder/Decoder

中

Loading...

URL Encoder & Decoder — Percent-Encoding and Query Tools

Encode text for safe use in URLs or decode percent-encoded strings back to readable text. Switch between encoding full URLs (which preserves separators like / and ?) and encoding component values (which encodes everything) — the distinction that trips up most URL bugs.

Paste any URL to parse its query parameters at the same time, and convert between query strings and JSON for use in code and API work. All processing is local, so tokens and signed URLs stay private.

How to encode or decode a URL

  1. Paste your text or URL into the input area.
  2. Pick encode mode: URL (keeps structural characters) or component (encodes everything).
  3. Click encode or decode — the result appears instantly.
  4. Use the query parser to break a URL's parameters into a table.
  5. Copy the output with one click.

Frequently asked questions

What is the difference between URL and component encoding?

encodeURI keeps characters that structure a URL (:/?#&=), for when your input is a complete URL. encodeURIComponent encodes all reserved characters, for when your input is a single parameter value. Using the wrong one is the classic cause of broken or double-encoded links.

Why do spaces become %20 or +?

Both encode a space. %20 is standard percent-encoding, used in paths and by encodeURIComponent. + is the legacy form-encoding style, used only in query strings from HTML form submissions. This tool uses the modern %20 form.

What is double encoding and how do I fix it?

If %20 itself becomes %2520, your text was encoded twice — % got encoded to %25. Decode the string twice to recover the original, then encode once at the correct layer in your code.

Can I turn query strings into JSON?

Yes — the parser converts a=b&c=d style queries into a JSON object, and back. Handy for building API requests or debugging parameter handling.

Related tools

PureKit · url · Free online tool — files processed locally in your browser, no upload.