Developer tools

URL Encoder & Decoder — free, private, in your browser

Percent-encode or decode URLs and query parameters — instantly, with no uploads.

This tool runs entirely in your browser. Your files are never uploaded — they stay on your device.

Result

URL encoding (also called percent-encoding) turns characters like spaces, ampersands and accents into a safe form such as %20, so they survive being placed in a URL or query string. This tool uses your browser’s built-in encodeURIComponent and decodeURIComponent to convert text both ways in real time.

Everything happens locally in your browser — your text is never sent to a server. Paste a value, switch between Encode and Decode, and copy the result with a single click. It’s perfect for debugging API requests, building links by hand, or reading an encoded parameter.

How to use URL Encode / Decode

  1. Choose Encode to make text URL-safe, or Decode to read an encoded value.
  2. Paste or type your text into the input box.
  3. The converted result appears instantly below as you type.
  4. Click Copy to copy the result to your clipboard.

Frequently asked questions

Is my text uploaded to a server?

No. The conversion runs entirely in your browser using the native encodeURIComponent and decodeURIComponent functions. Your text never leaves your device.

What is the difference between encoding and decoding?

Encoding replaces unsafe characters (like spaces, &, ? and accents) with percent-codes such as %20 so text is safe inside a URL. Decoding reverses that, turning the percent-codes back into readable characters.

Why do I get a decode error?

Decoding fails when the input contains an invalid percent sequence — for example a lone “%” or “%zz” that isn’t a valid escape. Check that every “%” is followed by two hexadecimal digits.

Does this encode the whole URL or just a component?

It uses encodeURIComponent, which encodes a single value such as a query parameter — characters like &, =, ? and / are escaped. That makes it ideal for the individual pieces of a URL rather than a complete address.

Related tools