URL Encoder & Decoder

Percent-encode or decode a full URL or a single component (like a query parameter value).

How to use this tool

Choose "Component" mode to encode a single value like a query parameter, or "Full URL" mode to safely encode an entire URL without breaking its structure. Paste text and press "Encode →" or "← Decode".

About this tool

Uses the browser's built-in encodeURIComponent / decodeURIComponent and encodeURI / decodeURI functions — the same standards-compliant percent-encoding used throughout the web platform.

100% client-side — nothing you type is uploaded, logged, or stored.

Frequently asked questions

What's the difference between 'Component' and 'Full URL' mode?

Component mode encodes every special character, including &, =, ?, and /, and is for encoding a single value (like a query parameter) before inserting it into a URL. Full URL mode leaves URL-structural characters like :, /, ?, &, and = alone and only encodes characters that aren't valid anywhere in a URL, so it's safe to use on an entire URL without breaking its structure.

What does percent-encoding mean?

Percent-encoding (also called URL encoding) replaces unsafe or reserved characters with a % followed by their two-digit hexadecimal byte value — for example, a space becomes %20 and & becomes %26 — so the resulting text is safe to use inside a URL.