About URL Decoder
A link from a log file, a redirect parameter or an analytics report often arrives as a wall of %2F, %3D and %E2%9C%93. Paste it here to read what it actually says. Multi-byte characters such as accents, Chinese and emoji are put back together from their UTF-8 bytes.
Where decodeURIComponent would throw away the whole string over one bad sequence, this page decodes everything it can and leaves the rest untouched: a lone % or a byte that is not valid UTF-8 stays as written, and a note gives the count and the position of the first one. Turn on "Read + as a space" for query strings and form posts.
How it works
- Text is turned into UTF-8 bytes, and every byte outside the characters a URL may carry unescaped becomes % followed by two hexadecimal digits.
- Component encoding matches encodeURIComponent, Full URI matches encodeURI, and Form matches what URLSearchParams writes: only letters, digits and * - . _ stay, and a space becomes +.
- Decoding reads every %XX sequence back into bytes and those bytes into UTF-8 text. Invalid sequences are kept as written and counted, with the position of the first.
- The swap button moves the result into the input and flips the direction, for a quick round trip.
Questions
Why are some sequences still showing after decoding?
They are not valid percent-encoding: a % not followed by two hexadecimal digits, or bytes that do not form UTF-8, which happens when text was encoded in an older character set such as Latin-1. They are kept so that nothing is lost, and the note says where the first one is.
Should + turn into a space?
Only in query strings and form data, where browsers write a space as +. In a path or anywhere else a + is a real plus sign, so the option is off until you turn it on.
Can I encode text here too?
Yes. Switch Direction to Encode, or press the swap button to send the decoded text back the other way. This page just opens ready to decode.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.