Skip to content

URL Encode and Decode

Percent-encode or decode URLs and text.

  • Free
  • No sign-up
  • No watermark
  • Works in your browser

Also called: URL encoder, URL decoder, percent encoding.

About URL Encode and Decode

Encode text so it is safe inside a web address, or decode percent-encoded text back to normal. Choose component mode to encode everything, or full-URL mode to keep structure characters such as : / ? & =. Malformed percent sequences produce a clear error.

How to use URL Encode and Decode

  1. Choose Encode or Decode.
  2. Pick component or full URL mode.
  3. Paste your text or URL.
  4. Copy the result.

Tips and good to know

  • Use component mode for query values and full-URL mode for a complete address.
  • Decoding has a switch for treating + as a space, which form submissions use.
  • Double-encoding is a common bug: decode once to see whether a value was already encoded.

When to encode

Web addresses may only contain a limited set of characters. Spaces, &, ?, #, =, non-English letters and emoji in a query value must be percent-encoded, for example a space becomes %20 and & becomes %26. Encode each parameter value separately, not the whole URL, or the :// and / that structure the address get encoded too. Decoding twice, or encoding twice, is a common bug that turns %20 into %2520.

Why URLs need encoding

A URL may only contain a limited set of characters. Spaces, accented letters and characters with special meaning — such as ?, &, = and # — must be written as a percent sign followed by two hexadecimal digits, so a space becomes %20 and & becomes %26. Non-English letters are first turned into UTF-8 bytes, which is why one Urdu or Chinese character becomes several %XX groups.

Encode values, not whole URLs. If you encode a full address, the :// and the slashes are encoded too and the link stops working; encode only the part that goes inside a query parameter.

Plus signs and spaces

In HTML form submissions a space is often written as +, while in other parts of a URL + means a literal plus. If decoded text shows plus signs where spaces should be, the value came from a form-style query string.

Frequently asked questions

Why is a space %20 or +?

Both are used. %20 works everywhere in a URL, while + means space only in form-style query strings.

Is URL Encode and Decode free?

Yes. URL Encode and Decode is free: no sign-up, no paid plan, no trial and no limit on how often you use it. It runs in your browser, and ToolzAura is paid for by ads, so every tool stays free.

Are my files uploaded?

No. This tool runs in your browser, so your input stays on your device.

Maintained by Malik Shaheer · Last reviewed · How we test tools · Report a problem

Guides for URL Encode and Decode

Related tools

URL Parser

Split a URL into its parts and query parameters.

Developer Tools

UUID Generator

Generate v4 UUIDs in bulk.

Developer Tools

chmod Calculator

Convert Unix permissions between symbolic and octal.

Developer Tools

Cron Expression Explainer

Read a cron expression in plain English.

Developer Tools

Cron Expression Generator

Build cron schedules with a visual form.

Developer Tools

DNS Lookup

Query DNS records for a domain.

Developer Tools