What is URL Encoding?
URL encoding, also known as percent-encoding, replaces unsafe characters with a '%' followed by two hexadecimal digits. This ensures URLs remain valid and can be transmitted correctly over the internet.
Common URL Encodings
- Space → %20: Spaces in URLs become %20 or + in form data Spaces in URLs become %20 or +
- & → %26: Ampersand is encoded to avoid conflicting with query parameter separators Ampersand is encoded to avoid confusion with query separators
- = → %3D: Equals sign is encoded in values to differentiate from key=value pairs Equals sign is encoded in values to prevent parsing issues
- / → %2F: Forward slash encoded when it's part of a value, not a path separator Forward slash encoded when it's part of a value, not a path separator