Developer tools

URL Encoder & Decoder

Encode or decode a URL component.

Let’s get to work

Fill in the details below to get started.

BROWSER TOOL

About URL Encoder & Decoder

Apply JavaScript’s encodeURIComponent or decodeURIComponent to text. Encode individual parameter values rather than a complete URL when you need to preserve its separators.

How to use it

  1. Enter text or an encoded component.
  2. Choose encode or decode.
  3. Convert and copy the result.

Frequently asked questions

Should I encode a whole URL?

Usually encode individual query parameter values. Encoding a whole URL also encodes its separators.

How is a plus sign treated?

This uses URI component rules, not form decoding; a plus sign is not automatically converted to a space.