Skip to content
AioFreeKit

URL Encoder

Percent-encode any text so it is safe to place inside a URL. Switch freely between encodeURIComponent for a single value and encodeURI for a complete link.

Component escapes every reserved character — use it for a single query value. Whole URL keeps :/?#&= intact so the link stays usable.

Form encoding (application/x-www-form-urlencoded) writes spaces as + instead of %20.

0 chars · 0 bytes · 0 lines

Result

The result will appear here as you type.

0 chars · 0 bytes · 0 lines

When you need URL encoding

URLs may only contain a small set of characters. Reserved characters such as &, =, ? and / have structural meaning, and non-ASCII text like Chinese or emoji is not allowed at all. Percent-encoding replaces each unsafe byte with % followed by two hex digits, so any text can travel inside a link without breaking its structure.

Pick the Component scope (encodeURIComponent) when encoding a single query value — it escapes every reserved character. Pick Whole URL (encodeURI) when the input is a complete link that should keep working. If the target system expects form encoding (application/x-www-form-urlencoded), enable the + as space option.

What this tool handles

  • Both encoding scopes

    Switch between encodeURIComponent for single values and encodeURI for a complete link, instead of guessing which one a tool used.

  • Query parameters unpacked

    Paste a long tracking link and every parameter is listed with its decoded value, so you can see exactly what is being carried.

  • Form encoding aware

    Optional + as space handling matches how HTML forms and many backends encode data, in both directions.

Frequently asked questions

Which characters must be percent-encoded?

Reserved characters (: / ? # [ ] @ ! $ & ' ( ) * + , ; =) whenever they appear as data, any character outside the printable ASCII range, and the % sign itself. Letters, digits and - _ . ~ never need encoding.

encodeURIComponent or encodeURI — which one do I need?

Use encodeURIComponent for a single value that will sit inside a query string, because it escapes & = ? and /. Use encodeURI on a complete URL, since it leaves those structural characters intact.

How does Chinese text get encoded?

Each character is first converted to its UTF-8 byte sequence, then every byte becomes %XX. For example 中 turns into %E4%B8%AD — three bytes, three escapes.

Is URL encoding a security measure?

No. It is a transport format, not encryption — anyone can decode it instantly. Never rely on it to hide sensitive data.

Feedback & Contact

Spotted a bug or have an idea for a new tool? We read every message — tell us which page you were on and what went wrong, and we will get right on it.