URL Encoder

URL-encode any text or string instantly in your browser. Free online URL encoder / percent-encoder for query strings, parameters and data URLs — no uploads.

Loading calculator…

Results

URL-encoded output
DetailValue
Input length
Encoded length

What is this calculator for?

Percent-encode a string so it can be safely placed inside a URL (query parameters, hash, or path) without breaking the URL syntax.

How to Use This Calculator

Enter the values below, then press Calculate (or press Enter). The calculator updates your results instantly. Try different values to see how your inputs change the outcome.

  1. Text / URL to encode — enter a value. A typical Text / URL to encode would be Paste the string to percent-encode….
  2. Review your results — the key output is highlighted, with supporting figures below.

What You'll Need

Text / URL to encode
a value · required

About This Calculator

This URL encoder percent-encodes any string so it is safe to embed in a URL. It uses encodeURIComponent, the strict form that encodes every reserved character.

Spaces become %20, and other unsafe or reserved characters like &, =, ?, #, and non-ASCII or emoji characters are converted to their percent-encoded byte form. This is the technique used to build query strings where user text must not be interpreted as URL syntax.

Everything runs locally in your browser — your input is never uploaded.

Worked Examples

Example

hello%20world%20%26%20friends

Frequently Asked Questions

What is the difference between encodeURI and encodeURIComponent?
encodeURI keeps URL-reserved characters such as &, =, ?, and # intact, while encodeURIComponent encodes them. This tool uses encodeURIComponent, which is correct for query parameter values.
Is URL encoding reversible?
Yes. Use the companion URL decoder to turn percent-encoded text (like %20) back into the original characters.