DevToolbox

URL Encoder & Decoder

Percent-encode and decode URLs, query strings and individual components.

Loading tool…

URLs may only contain a limited set of characters, so spaces, punctuation and non-ASCII text must be percent-encoded (for example a space becomes %20). This tool encodes and decodes that format, with UTF-8 handling so international text works.

Choose component mode (like encodeURIComponent) when encoding a single value such as a query parameter, or full URL mode (like encodeURI) when you want to keep structural characters such as /, ? and & intact.

Features

  • Encode and decode percent-encoding
  • Component mode and whole-URL mode
  • UTF-8 aware, so non-ASCII characters encode correctly
  • Batch mode: encode or decode each line separately
  • Clear error if the input contains a malformed % sequence

How to use the url encode / decode

  1. Paste the text or URL you want to convert.
  2. Choose encode or decode, and component or full-URL mode.
  3. Copy the result.

Frequently asked questions

What is the difference between the two modes?

Component mode encodes reserved characters like / ? & = # too, which is right for a single parameter value. Full-URL mode leaves those alone so a complete URL stays usable.

Why does + sometimes mean space?

In application/x-www-form-urlencoded form data, spaces are encoded as +. In the path and generic query components, a space is %20. This tool uses %20; enable form mode if you need +.

Is my input uploaded?

No. Encoding and decoding happen in your browser.

Last updated September 10, 2026.

Related tools