URL Encode / Decode

Percent-encode or decode URLs and query text, with an option to keep a full URL's structure intact. Free, runs in your browser.

Input
Result

About URL Encode / Decode

The URL Encode / Decode tool turns spaces, accents and symbols in web addresses into percent codes like %20, and back again, so links and query strings work everywhere.

A single value or a full URL

Encode a search term or a parameter value with the full-URL option off. Turn it on for a whole address, so : / ? & = stay as they are.

Why it matters

In a query string, a value like 'fish & chips' must be encoded, or the & starts a new parameter and the value breaks.

Seeing %2520?

The text was encoded twice, because %25 is an encoded percent sign. Decode once to get back to %20.

Private

Everything runs in your browser. Nothing you paste is uploaded.

Which characters get encoded?

Letters, digits and - _ . ~ never need encoding. Spaces, &, =, ?, #, / and non-English letters do when they are part of a value.

How it works

Each byte becomes % plus two hex digits. A space is %20, and é is two bytes in UTF-8, so it becomes %C3%A9.

How to use URL Encode / Decode

  1. Paste your URL or text.
  2. Tick "Encode a full URL" if you are encoding a whole address.
  3. Press Encode or Decode.
  4. Copy the result.
  5. To check your work, press Decode on the result and compare it with your original text; they should match.

Help & FAQ

When should we encode a full URL and when only a value?

Encode a single value when you are placing it inside a query string, so & and = in the value cannot break the URL. Encode a full URL when you want to keep its structure and only fix unsafe characters.

What does %20 mean?

It is the percent-encoded form of a space character. In form data, a space is sometimes written as +.

Why is our link still broken after encoding?

Encoding twice turns % into %25. Decode once and encode again if you see that.

What does %25 mean?

It is an encoded percent sign. Seeing it usually means the text was encoded twice.

Can we decode a link to read it?

Yes, paste the link and press decode to see the original characters.

Is a plus sign the same as a space in a URL?

In form data (the application/x-www-form-urlencoded format) a plus sign stands for a space, but in other parts of a URL a plus sign is a literal plus. When in doubt, use %20 for a space.

Does encoding make a URL secure?

No. Percent-encoding only makes characters safe to transmit. Anyone can decode it, so never rely on it to hide a password, token or personal detail.

Which characters never need encoding?

Letters, digits and the symbols hyphen, period, underscore and tilde are left alone. Other characters should be encoded when they are part of a value.

Can we encode non-English text?

Yes. Non-ASCII characters are converted to UTF-8 bytes and each byte is written as %XX, so Arabic, Urdu, Hindi and accented text all work.

More in Developer Tools

See all 39 in Developer Tools