URL Encoder & Decoder

โ€“output
โ€“input chars
โ€“output chars
โ€“% sequences
EncodedCharWhy it is reserved
%25%The escape itself - encode % first or every later encoding doubles
%20spaceQuery values never carry a raw space
%22"Quote - breaks attribute values and some parsers
%23#Starts the fragment; everything after stays client-side
%24$Reserved sub-delim
%26&Separates query parameters - the & in a=r&b=s
%2B+Means space in form encoding - ambiguity trap
%2F/Path separator - in a query value it must be encoded
%3A:Scheme and time separators
%3B;Parameter separator in some path schemes
%3F?Starts the query string
%40@Userinfo separator in URLs
%3D=Key=value separator inside the query
Component mode encodes everything a query-string value must have encoded (& = ? / and spaces as %20); full-URL mode keeps the structure characters Runs locally. The thirteen reserved characters above follow RFC 3986 section 2.2; letters, digits and - . _ ~ are unreserved and never need encoding.

URL encoding is why 'cafรฉ & croissants' survives a query string: spaces become %20, the ampersand becomes %26 so it can't be misread as a separator, รฉ becomes %C3%A9. This tool does both directions with the distinction most tools skip - component mode (for values inside ?a=1&b=2, escaping & = ? /) versus full-URL mode (keeping the :// and separators that make a URL work), with the difference explained in the note as you type.

Decode mode is the reader for mystery links: paste a tracking URL or an encoded API parameter and see the human version instantly, with malformed sequences (% not followed by two hex digits) flagged precisely rather than decoding to garbage. The stats count the % sequences for you, and everything runs locally - your URLs, with their tokens and tracking parameters, stay on your device.

How to use

  1. Pick encode or decode, then component or full-URL scope.
  2. Paste your text or URL - the result updates live with a length diff.
  3. Copy the output; malformed decodes explain exactly what broke.

Frequently asked questions

When should I use %20 versus + for spaces?

%20 is the encoding of a space in URLs and query strings (encodeURIComponent style, what this tool produces); + is the legacy application/x-www-form-urlencoded style from HTML form posts. Both decode to a space in practice, but %20 is the modern, always-safe choice - and what well-behaved APIs expect.

What is the difference between component and full-URL encoding?

Component encoding escapes structure characters (& = ? /) so a value cannot be mistaken for URL syntax - right for ?q=... values. Full-URL encoding (encodeURI) keeps :// ? & intact because they ARE the syntax - right when encoding a complete URL to embed as a parameter.

Why did my decode fail with a lone % sign?

Every % must be followed by exactly two hexadecimal digits. A bare percent - '50% off' pasted raw - is malformed; encode it first (%25) or remove it. The error note here pinpoints the rule rather than guessing.

Is URL encoding a form of encryption?

Not at all - it is reversible transport encoding, readable by anyone. It makes text safe to carry in a URL; it hides nothing. For secrecy you need TLS (automatic on https) and proper encryption, not percent-encoding.

What is the difference between encodeURI and encodeURIComponent?

They differ in exactly one thing: how much they protect. encodeURIComponent treats nearly every reserved character as data - it encodes the thirteen characters in the table above, including / ? and & - which is what a query-string VALUE needs. encodeURI assumes you are encoding a whole URL and deliberately leaves the structure characters (://?&) alone so the address stays a working address. Encode the value with the component mode, the whole address with full-URL mode - the reverse is how double-encoding bugs are born. The character sets are defined in RFC 3986 section 2.2.

Related tools