Skip to content

Developer Tools

URL Encoder

Percent-encode URLs and query strings.

Your information is processed in your browser and is not uploaded to our servers.

URL or text

Result

About this tool

encodeURIComponent encodes a query value, including &, ?, and /. encodeURI leaves URL structure characters intact.

How to use

  1. Paste text or a URL.
  2. Leave the checkbox on for query values.
  3. Copy the encoded string.

Formula and methodology

Default is encodeURIComponent. Uncheck to use encodeURI.

Worked example

a & b becomes a%20%26%20b as a component.

Frequently asked questions

Which mode should I use?+

Use component encoding for search params. Use encodeURI for a full URL that already has a scheme.

Is the URL uploaded?+

No.

Related tools