- URL Encoding (also known as percent encoding) converts characters into a format that can be safely transmitted in a URL. Special characters (such as spaces, slashes, and others) are replaced by a "%" followed by a two-digit hexadecimal representation of the character’s ASCII code.
- URL Decoding does the reverse operation—converting the percent-encoded characters back to their original form.
For example:
- URL Encoding:
- Space (" ") becomes %20
- Slash ("/") becomes %2F
- URL Decoding:
- %20 becomes a space (" ")
- %2F becomes a slash ("/")
Leave a comment: