URL Encode / Decode

Percent-encode text for safe use in a URL, or decode an encoded URL back to readable text — both directions, live as you type.

712 views

Percent-Encoding, Both Ways

Type or paste text on either side: the encode box turns spaces, accented letters and reserved characters (like &, ?, #) into their %XX percent-encoded form so the string is safe to use in a query parameter or path segment. The decode box does the reverse, turning a percent-encoded string back into readable text.

Uses the browser's native encodeURIComponent/decodeURIComponent, the same encoding real browsers apply — not an approximation. Useful for building query strings by hand, debugging a redirect URL, or reading a percent-encoded parameter someone sent you.

Frequently Asked Questions

Why does a space become %20 and not +?

Percent-encoding (RFC 3986) uses %20 for a space; the + convention is specific to the older application/x-www-form-urlencoded format used in form bodies, not general URL encoding. This tool uses the standard %20 form.

Does it encode the whole URL or just one part?

It is designed for encoding a single component (a query value, a path segment) — encoding an entire URL including "https://" would also escape the slashes and break it, so encode only the part that needs it.

Is my text sent anywhere?

No — encoding and decoding happen instantly in your browser.

Similar Tools