You copy a link from an email or a chat app, paste it into a document, and it looks broken: the words are interrupted by %20, %26 and %2F. The address is not corrupted. It is percent-encoded: every character a URL cannot carry raw has been swapped for a three-character code, and the original text is easy to recover once you can read them.
This guide explains the common codes, shows how to decode an address by hand and with the free URL Encoder/Decoder on Ovatly, and covers the one distinction that matters most: a slash written as %2F is data, not a divider.
Contents
- Quick answer
- How a percent code is built
- The codes you will actually meet
- Why %2F is not a path separator
- How to decode a URL, step by step
- Worked example: one address decoded both ways
- Limitations and honest warnings
- Common mistakes
- FAQs
- Conclusion
Quick answer
A percent code is the percent sign followed by two hexadecimal digits that name a byte. %20 is byte 32, a space. %2F is byte 47, a slash. %26 is an ampersand. To decode an address, open the URL Encoder/Decoder, paste the address, and press Decode: spaces, symbols and stray characters come back as readable text, and the structure of the address stays intact. Encoding is not encryption, so decoding needs no key and no permission.
How a percent code is built
Every character in a text is stored as one or more bytes, and each byte has a number. A space is byte 32. Written in hexadecimal, 32 is 20, so the encoded form is %20: a percent sign announcing "a code follows", then the byte number in hex. A slash is byte 47, which is 2F in hexadecimal, giving %2F. An ampersand is byte 38, hex 26, giving %26. An equals sign is byte 61, hex 3D, giving %3D, and a question mark is byte 63, hex 3F, giving %3F.
That single rule decodes every code in ordinary addresses: find the percent sign, read the next two characters as a hexadecimal number, and that number is the byte. Non-ASCII characters take more room, encoded as their UTF-8 bytes, one code per byte: an accented letter like é is two bytes, so it appears as %C3%A9.
This is also why encoded text gets longer: each unsafe character becomes three characters, a non-ASCII character six or more. The growth is normal and exactly reversible.
The codes you will actually meet
A handful of codes cover almost everything in real addresses:
%20is a space, by far the most common code, because file names and search phrases are full of spaces.%2Fis a slash inside a value, covered in detail in the next section.%26is an ampersand that belongs to the data. A raw&starts a new parameter, so the ampersand in "tea & biscuits" travels as%26.%3Dis an equals sign inside a value, where a raw=would look like a name-value separator.%3Fis a question mark inside a value, where a raw?would look like the start of the query string.%25is a percent sign itself, encoded so it is not mistaken for the start of a code.
The pattern: the encoded characters are exactly the ones with structural jobs in an address. Encoding demotes them to ordinary data.
Why %2F is not a path separator
This distinction causes the most confusion, so it deserves its own section. A raw slash in an address is structure. In https://example.com/reports/2026/summary, the slashes divide the path into segments: reports, then 2026, then summary, and servers read those divisions to decide what to serve.
A slash written as %2F is not structure. It is a character inside a single value. When a file name or category label genuinely contains a slash, and that value has to travel inside one query parameter or one path segment, the slash is encoded so nothing downstream mistakes it for a divider. Decode %2F and the slash lands inside the value, as data. Split an address on raw slashes and a %2F stays safely inside its segment, which is precisely why it was encoded that way.
The mirror image explains the tool's two modes. Component mode, for a single query value, encodes everything a URL cannot carry raw, including &, =, ? and /. Full URL mode, for a whole address, encodes spaces and stray characters while leaving the structural characters alone, because they are doing their job and must survive.
How to decode a URL, step by step
- Open the URL Encoder/Decoder.
- Paste the encoded address or value. For a whole address, the tool decodes the percent codes while keeping the address structure intact.
- Press Decode.
- Read the result, or read the error. A stray
%or an incomplete%2at the end produces a clear error instead of garbage, which usually means the string was truncated when it was copied. - Copy the decoded result.
Worked example: one address decoded both ways
Here is an address of the kind a reporting tool might generate:
https://example.com/search?q=tea%20%26%20biscuits&file=reports%2F2026%20summary
Decoded by hand, code by code: %20 becomes a space, %26 an ampersand, %20 a space again, so q is the phrase "tea & biscuits". The raw & after it is structure, a real parameter separator. In the second value, %2F becomes a slash and %20 a space, giving "reports/2026 summary". Note where that slash landed: inside the file value, as part of a name. It did not split anything.
The fully decoded address reads:
https://example.com/search?q=tea & biscuits&file=reports/2026 summary
Paste the original into the URL Encoder/Decoder, press Decode, and you get the same result instantly. The hand pass is still worth doing once: it teaches your eye to separate raw characters doing structural work from percent codes carrying data.
Limitations and honest warnings
Decoding recovers the text; it does not validate anything else. A decoded address can still point at a missing page or carry a value the receiving site will reject. The tool also cannot know how many times a string was encoded. An address encoded twice still shows codes after one decode, because %2520 decodes to %20, not to a space. If the output still contains codes, one more decode pass is the fix.
Two more honest limits. Encoding is not encryption: anyone can decode an address with the same tool, so a readable-after-decoding value was never hidden. And one ambiguity is built into the format: in form-produced query strings + means a space, while this tool encodes spaces as %20. Expect + in addresses from forms, and %20 from this tool.
Common mistakes
- Reading
%2Fas a path divider. It is a slash inside a value. Splitting on it, or swapping in a raw slash, changes what the value means. - Deleting the percent codes. Stripping
%20and its cousins joins words together and corrupts values. Decode properly instead of cleaning by eye. - Sharing the decoded form. Decoding is safe for reading, but a decoded link pasted back into a browser can break, because the raw spaces and ampersands are what the encoding was protecting against. Read decoded; share encoded.
- Assuming a decode error means the tool failed. A clear error on a stray
%or an incomplete%2means the string was cut off or never fully encoded. Copy the address again, completely. - Confusing
+with an error. In form-produced query strings,+is a space, not a literal plus and not corruption.
FAQs
What does %20 mean in a URL?
%20 is a space. The space character is byte 32 in decimal, 20 in hexadecimal, and a URL cannot carry a raw space, so the encoded form appears wherever the original text had one.
What does %2F mean, and is it the same as a slash in the path?
%2F is a slash character stored as data inside a value. It is not the same as a raw / in the address, which is a structural separator between path segments. The encoded form means this slash belongs to the value itself.
How do I decode a URL by hand?
Find each percent sign, read the two characters after it as a hexadecimal byte, and replace the three characters with the character that byte stands for. %20 becomes a space, %26 becomes an ampersand, %2F becomes a slash.
Why does my decoded text show a + where a space should be?
In query strings produced by form submissions, + means a space. The URL Encoder/Decoder uses %20 when it encodes, which is valid everywhere in a URL, but addresses you receive from forms may use the + form instead.
What happens if a percent code is broken?
Decoding invalid input, like a stray % or an incomplete %2 at the end of the string, produces a clear error in the tool instead of garbage output, which tells you the string was cut off or never fully encoded.
Conclusion
Percent codes are a notation, not damage: %20 is a space, %2F is a slash held as data, and every code yields to the same rule of a percent sign plus a hexadecimal byte. Percent-encoding also gets compared with the other text-safe encoding developers meet, which URL Encoding vs Base64 Encoding: When to Use Each untangles. For more tools like these, see the Developer Tools guide archive.