URL Encode

Percent-encode text for safe use in URLs

Characters such as spaces, ampersands, question marks and hash symbols carry structural meaning in a URL. Dropping them into a query parameter unescaped will break the link or silently truncate the value. Percent-encoding converts them into a form that travels safely.

How to use it

  1. Paste the text you want to encode.
  2. The percent-encoded output updates as you type.
  3. Copy it into your query string or path segment.
  4. Use URL Decode to confirm the round trip is clean.

Frequently asked questions

Why did my ampersand break the URL?

An ampersand separates query parameters, so an unencoded one inside a value ends that value and starts a new parameter. Encoding it as %26 keeps it as literal data. The same applies to question marks, hashes, equals signs and plus signs.

Should the whole URL be encoded, or just parts of it?

Only the individual values. Encoding an entire URL would escape the slashes and colon that give it structure, producing a string no browser can resolve. Encode each parameter value separately, then assemble the URL.

How are spaces handled?

They become %20. You will also see plus signs used for spaces in older form submissions, which is a different convention specific to application/x-www-form-urlencoded bodies rather than URLs generally.

Are non-English characters supported?

Yes. Text is encoded as UTF-8 first, so accented characters, non-Latin scripts and emoji all encode and decode correctly.