URL Encoder / Decoder

Safely encode text for use in links and query strings, or decode a messy URL.

Loading tool…

Runs entirely in your browser. Nothing you type is sent to a server.

How to use the URL Encoder / Decoder

  1. Paste the text or URL.
  2. Choose Component (for a single query value) or Full URL mode.
  3. Click Encode or Decode and copy the result.

About this tool

URLs can only contain certain characters. Spaces, accents and symbols such as & or ? must be percent-encoded, for example a space becomes %20.

Component mode encodes everything that is not safe inside a single query value. Full URL mode leaves characters like :, / and ? alone so the link still works.

Frequently asked questions

Should spaces be %20 or +?

Both appear in practice. %20 works everywhere; + only means a space inside form-style query strings.

Which mode should I use?

Use Component for a value you are putting after = in a query string, and Full URL for a whole link.

Why did decoding fail?

The text contains a % that is not followed by two hex digits, so it is not valid percent-encoding.