Percent-encode and decode URLs as you type in four character sets, build query strings, and take any URL apart parameter by parameter.
Initializing in your browser…
Encode and decode text, files and JSON as base64, base64url or hex as you type, with a check that every result decodes back exactly.
Decode a JSON Web Token instantly, check its expiry and claims, and verify the signature with a secret, PEM key or JWKS, all in your browser.
Convert Unix timestamps to dates and dates to timestamps in any time zone, with seconds, milliseconds, microseconds and nanoseconds detected automatically.
You are adding a promotional message as a query parameter, and the server that checks the request signature says it follows RFC 3986.
Text to encode
it's (50% off) ~ now!
The same 21 bytes in each percent set
Component it's%20(50%25%20off)%20~%20now! 5 escaped RFC 3986 it%27s%20%2850%25%20off%29%20~%20now%21 9 escaped Full URI it's%20(50%25%20off)%20~%20now! 5 escaped Form data it%27s+%2850%25+off%29+%7E+now%21 10 escaped
The four sets agree on letters, digits and the percent sign, which always becomes %25, and disagree on everything else in this text. Component (encodeURIComponent) and Full URI leave the apostrophe, both brackets and the exclamation mark alone, so they escape only the four spaces and the percent sign. RFC 3986 escapes those four characters too, which is why a signature built with encodeURIComponent will not match a server that follows the RFC. Form data writes each space as a plus sign and also escapes the tilde, which every other set keeps. Whichever set you pick, the tool decodes the result again and confirms it gives back the original 21 bytes.
Percent-encoding is how a URL carries characters it cannot hold directly: each byte becomes a percent sign and two hex digits, so a space turns into %20 and é into %C3%A9. This tool encodes and decodes as you type in the four character sets that matter in practice, shows the same text in all of them side by side, builds query strings, and takes an existing URL apart value by value.
A URL may only contain a limited set of ASCII characters, and some of those have jobs: a question mark starts the query, an ampersand separates parameters, a hash starts the fragment. Any other character, and any of those used as ordinary data, has to be written as %XX, where XX is the hex of one UTF-8 byte. Text in other scripts is encoded byte by byte, so the Japanese character 世 becomes %E4%B8%96 and an emoji becomes four escapes.
The hard part is choosing which characters to escape, because there is no single answer. RFC 3986 keeps only letters, digits and the four characters - . _ ~ and escapes everything else. JavaScript encodeURIComponent also leaves ! ' ( ) and * alone. encodeURI goes further and keeps the structural characters such as / ? & = and #, which is right for a whole URL and wrong for a single value. HTML forms and URLSearchParams use a fourth set in which a space becomes a plus sign and the tilde is escaped. The tool offers all four plus base64url, and in Encode mode it lists the result in every percent set at once so you can see exactly where they differ for your text.
Decoding never gives up on the first bad escape. A % followed by something that is not two hex digits, or a % at the very end, is reported with its position, and the rest of the input is still decoded. If the escapes describe bytes that are not valid UTF-8, the tool says so and shows the bytes in hex, rather than quietly showing replacement characters. Whether a plus sign means a space depends on who is reading: a server reading form data says yes, a path reader says no, so there is a switch for it.
The Builder assembles a query string from name and value pairs, encodes each value with the set you choose, keeps any parameters and fragment already on the base URL in the right place, and then parses the finished URL back to confirm a server would read exactly the values you typed. Batch encodes a list, one value per line, with a copy-all button and a tab-separated download. Analyze splits a URL into scheme, host, port, path segments, parameters and fragment, decodes each value exactly once, shows the raw text beside it, and points out things worth knowing, such as plain http, credentials in the URL, a malformed escape, a double-encoded %25 sequence, or a length over 2,000 bytes.
Everything runs in your browser. The text you convert is kept out of the address bar and out of share links, which carry only the mode and the character set.
OAuth 1.0a and AWS Signature Version 4 require RFC 3986 encoding. encodeURIComponent leaves ! ' ( ) * unescaped, so a value containing one of them signs differently from what the server computes. The RFC 3986 set produces the form those specifications expect.
A redirect_uri or a tracking link carried as a parameter must have its own ? & = and # escaped, or the outer URL breaks apart. Encode it with Component, or build the whole thing in Builder and let the parse-back check confirm it.
Paste it into Analyze to see each parameter as the server reads it, the text as it was written, and any escape that is broken or encoded twice.
Build UTM links with readable campaign names that contain spaces and ampersands, and copy a URL that every analytics tool will read the same way.
encodeURI leaves the structural characters ; / ? : @ & = + $ , and # alone, so it suits a complete URL whose structure is already correct. encodeURIComponent escapes them, so it suits a single value going into a URL. Using encodeURI on a value that contains & or = splits it into extra parameters.
They differ on five characters: ! ' ( ) and *. RFC 3986 treats them as reserved and escapes them; encodeURIComponent leaves them as they are. For most query values either works, but anything that signs a canonical URL needs the RFC 3986 form.
HTML forms send data as application/x-www-form-urlencoded, which writes a space as a plus sign. Everywhere else in a URL a space is %20. A server reading a query string usually accepts both, but a plus in a path stays a plus, which is why the decoder lets you choose.
Only the values, in almost every case. Encode each name and value on its own and then join them with = and &. The Builder does exactly that. Full URI exists for the rare case of a complete URL that only needs its stray spaces and non-ASCII characters escaped.
It is a value that was encoded twice. %25 is the escape for the percent sign, so %2520 decodes once to %20 and a second time to a space. Analyze flags this pattern, because it usually means some step in a pipeline encoded text that was already encoded.
Decoding still produces the bytes and shows them in hex, and a warning explains that the text version contains replacement characters and would not re-encode to the same bytes.
No. Everything runs in your browser. The text you convert is not written into the address bar or into share links, so it does not end up in your history or in a link you send to someone.
Conversions run on your device in JavaScript. The values you enter are never sent over the network.