URL encoder & decoder

Percent-encode or decode a URL or a single parameter, and inspect every query parameter of a link in a clean table. Everything runs in your browser.

  • Files stay on your device
  • Free, no sign-up
  • No installation
  • Instant results
Use this tool

How to use it

  1. Paste a URL or a piece of text in the box.
  2. Choose Component mode for a single parameter value or Full URL mode for a whole link, then press Encode or Decode.
  3. If the text is a link with a query string, its parameters appear in a table below.

URLs can only contain a limited set of ASCII characters. Anything else (spaces, accents, emoji, or characters with a special meaning such as &, = and #) is written as a percent sign followed by two hexadecimal digits: a space becomes %20 and “é” becomes %C3%A9. This is called percent-encoding, and it keeps a link from breaking when it contains user text.

Use Component mode when you are encoding one value to place inside a query string, for example the text of a search. It encodes every reserved character. Use Full URL mode when you have a complete link and only want to escape the unsafe characters (spaces, accents) while keeping the structure characters : / ? # & = untouched. Encoding a full URL with component mode would turn the :// into %3A%2F%2F and break it.

In HTML form submissions a space is written as + instead of %20; the option above lets you pick either. Decoding turns percent sequences back into text and reports an error when the sequence is malformed, such as a lone % sign.

A closer look

URLs can only contain a limited set of characters, so spaces, accents and symbols are replaced with percent codes. Encode a value before placing it in a query string, and decode it to read what a long link contains.

Developers often paste sample data into online tools, so a tool that runs locally in the browser, without sending the content to a server, is the safer habit for tokens, keys and customer records.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI keeps characters that structure a URL (: / ? # & =), while encodeURIComponent encodes them too, so it is meant for single values.

Why do I see %20 or +?

Both represent a space: %20 is standard percent-encoding, + is used in query strings submitted by HTML forms.

Why does decoding fail?

The text contains a % that is not followed by two hexadecimal digits, or the bytes are not valid UTF-8.

Is my data sent anywhere?

No. Encoding and decoding happen in your browser.

More free tools

A practical example

When preparing a test fixture, start with synthetic values. Copy the result into a disposable test file and confirm the receiving app interprets it as expected.