Skip to content

URL Encoder & Decoder

Safely encode or decode strings for use in URL query parameters.

Text to Encode

Encoded Output

About the URL Encoder/Decoder

Convert text to and from URL percent-encoding, so spaces, symbols and non-ASCII characters can be used safely in links and query strings.

How to use it

  1. Paste text to encode it, or press Swap and paste an encoded string to decode it.
  2. The result appears as you type; full URLs are broken down into their parts and query parameters.
  3. Use Options for query-value, full-URL or form encoding and line-by-line conversion, then copy the result.

Frequently asked questions

Which characters get encoded?

By default everything except letters, digits and - _ . ! ~ * ' ( ) is percent-encoded, matching JavaScript's encodeURIComponent. Full URL mode also keeps : / ? # & = so the link still works, and form mode writes spaces as +.

Why does my decoded text show an error?

A % must be followed by two hex digits, and the bytes must form valid UTF-8. The error names the character position of the first problem.

Related tools