Encode and decode URLs with percent encoding
URL encoding (also known as percent-encoding) converts special characters into a format that can be safely transmitted over the Internet. It replaces unsafe ASCII characters with a '%' followed by two hexadecimal digits. For example, a space becomes %20, and '&' becomes %26.
URLs can only contain a limited set of characters. URL encoding ensures data integrity when:
Common encoded characters: space (%20), @ (%40), # (%23), ? (%3F), & (%26). When switching between modes, the tool automatically swaps input and output for quick round-trip testing.
All encoding and decoding is performed locally in your browser using JavaScript's built-in encodeURIComponent and decodeURIComponent functions. No data is sent to any server, ensuring complete privacy.