URL Encoder

Percent-encode text so it can be used safely in a URL, a query string or form data.

Runs in your browser

Text

Encoded

Processed in this browser tab. Nothing is uploaded.

How to use the URL Encoder

  1. Type or paste text.
  2. Choose a mode: a single value (component), a full URL, or form data.
  3. Copy the encoded result.

Example

Encode a query value
Input
café & croissant = 5€
Result
caf%C3%A9%20%26%20croissant%20%3D%205%E2%82%AC

What it does

Three modes
Component mode encodes everything except letters, digits and - _ . ~. Full URL mode keeps : / ? # & = intact. Form mode uses + for spaces.
Strict RFC 3986
Characters ! ' ( ) * are encoded too, which encodeURIComponent() leaves alone.

Frequently asked questions

When should I use component vs full URL mode?

Use component mode for a single value you are inserting into a URL, such as a search term. Use full URL mode only when you have a complete URL with a few unsafe characters, such as spaces.

Should spaces be %20 or +?

%20 works everywhere in a URL. + means a space only in form-encoded query strings (application/x-www-form-urlencoded).

Is my data sent to a server?

No. The conversion runs in your browser, and nothing you paste is uploaded, logged or stored.