Skip to content

URL Encoder/Decoder

Percent-encode or decode URLs and query strings safely.

AvailableRuns in your browserFree · No sign-up

URL Encoder/Decoder

Direction
What are you converting?

Your data is processed locally in your browser and is not uploaded to OZVILO servers.

How to use the URL Encoder/Decoder

  1. 1Choose Encode or Decode.
  2. 2Pick Component mode for a single value, or Full URL mode for a complete address.
  3. 3Paste your text — the result updates instantly.
  4. 4Copy the result or use Swap to reverse it.

Examples

  • Query value (component)

    Input
    rock & roll
    Result
    rock%20%26%20roll
  • Full URL

    Input
    https://example.com/my page?q=a b
    Result
    https://example.com/my%20page?q=a%20b

Frequently asked questions

When should I use component mode vs. full URL mode?

Use component mode for a piece that goes inside a URL, such as a search term or parameter value — it encodes characters like &, = and /. Use full URL mode for a complete address; it keeps :, /, ?, & and # so the URL still works.

Why is a space sometimes “+” instead of “%20”?

HTML forms encode spaces as “+” in query strings. When decoding form data, turn on “Treat + as space”. Otherwise + is left unchanged.

Will full URL mode double-encode an already-encoded URL?

No. Existing escapes like %20 are kept as they are.

Why does decoding fail?

Decoding fails when a % sign isn't followed by two hexadecimal digits, or when the escapes don't form valid UTF-8 text. The error message explains which.