Skip to content

Free tool

URL encode and decode

Percent-encode text for use in URLs and query strings, or decode %20-style escapes back to readable text.

Input

Output

Why URLs need encoding

URLs may only contain a limited set of characters. Spaces, non-ASCII letters and characters with special meaning (?, &, =, #, /) must be percent-encoded inside a value: a space becomes %20, & becomes %26, and é becomes %C3%A9 (its UTF-8 bytes). Without encoding, an & inside a value splits it into two parameters.

Component or whole URL

Encode each parameter value separately (what encodeURIComponent does, the default here) so reserved characters inside values are escaped. Encoding a whole URL (encodeURI) keeps :, /, ?, & and = so the URL still works. Encoding a full URL with the component function breaks it, and encoding twice turns %20 into %2520, a frequent source of 400 Bad Request errors.

Plus signs and spaces

In HTML form submissions (application/x-www-form-urlencoded), spaces are written as +. In the rest of the URL, + is a literal plus. This decoder treats + as a space, which matches query strings from forms. When redirects go wrong because of encoding, the redirect checker shows each hop’s exact URL.

Using it safely at work

Online developer tools are a common way secrets leak: people paste production tokens, customer records or private keys into a website that quietly logs them. This page does all its work in your browser with standard Web APIs, makes no network request with your input, and stores nothing, so it is safe to use with real data, and you can confirm that in your browser’s network panel. Even so, treat anything you paste as you would treat a screenshot: rotate a token that was exposed, never share links that contain it, and prefer command-line tools on the server itself for very sensitive material.

Frequently asked questions

Is my data sent to a server?

No. This tool runs entirely in your browser; nothing you paste is uploaded or stored.

What is %20?

A percent-encoded space.

Why do I see %2520?

The text was encoded twice; %25 is an encoded percent sign.

Should I encode the whole URL?

Usually encode only parameter values; use the whole-URL option for complete links.

Which characters never need encoding?

Letters, digits and - _ . ~ are always safe in any part of a URL.

More free tools

All tools