Skip to content

Encoding

URL encode, decode and parse

Percent-encode text and split a URL into its parts and query parameters.

Private Everything on these pages runs in your browser. What you type is never sent to a server and nothing is stored.

Encode and decode use component encoding (encodeURIComponent). "+" is read as a space when decoding.

How to use it

  1. Paste text to encode or decode, or a full URL to parse.
  2. Press Encode, Decode or Parse.
  3. Copy the result, or read each query parameter from the table.

Example

Input

a b&c=d/é

Result

a%20b%26c%3Dd%2F%C3%A9

Frequently asked questions

What is the difference between encoding a component and a whole URL?

A component such as a query value must escape characters like & = / and ?. A whole URL keeps those because they give it structure. This tool encodes a component.

Why does é become %C3%A9?

Percent-encoding works on bytes. The character é is two bytes in UTF-8 (C3 A9), and each byte is written as %XX.

Related articles