URL Encode Decode – Percent-encode and decode text

Paste a URL fragment or query value, then Encode to percent-encode reserved characters, or Decode to restore them. Broken percent sequences surface as Invalid URL encoding instead of crashing.

Updated 2026-08-03 · developer

About this tool

URL encoding turns spaces and symbols into percent-hex form so query strings stay safe. This tool exposes Encode and Decode buttons over one Input textarea, using the browser encodeURIComponent and decodeURIComponent APIs for the result panel.

How to use

  1. Open the tool: Open URL Encode Decode in any modern browser.
  2. Paste input: Put plain text or an encoded string into Input.
  3. Encode or Decode: Click Encode for percent-encoding or Decode to reverse it.
  4. Copy the result: Copy the result panel into your URL, code, or docs.

Common use cases

Tips

FAQ

Which encode API does this use?

encodeURIComponent for Encode and decodeURIComponent for Decode.

What happens on a bad decode?

The result shows Invalid URL encoding.

Will Encode change a full URL including the scheme?

Yes—it encodes the whole Input string, including slashes if present.

Is data sent to a server?

No. Encoding and decoding run in your browser.

Related keywords

Related tools