URL Encode & Decode

Percent-encode text for URLs, or decode it back to plain text.

How to use

  1. Paste a URL or text with special characters into the box.
  2. Click “Encode URL” to percent-encode it, or “Decode URL” to reverse it.
  3. Copy the result for use in links, query strings, or code.

Frequently Asked Questions

When do I need URL encoding?

Whenever a value (like a search query or parameter) contains spaces, symbols, or non-ASCII characters and needs to go inside a URL.

What's the difference between this and encodeURI?

This tool uses encodeURIComponent, which escapes more characters (like & and =) — the right choice for individual query parameter values rather than a whole URL.

Why did decoding fail?

The input isn't valid percent-encoded text — for example it contains a stray % not followed by two hex digits.