URL & HTML Encoder
Safely encode and decode URL parameters and HTML entities
Input
Output
About URL & HTML Encoders
URL Encoding (or Percent-encoding) is a mechanism for encoding information in a Uniform Resource Identifier (URI). Characters that are not "safe" (like spaces, ampersands, or equals signs) are replaced with a % followed by their hexadecimal equivalent. This is crucial for safely passing query parameters to APIs.
HTML Encoding replaces unsafe characters with their HTML Entity equivalents to prevent Cross-Site Scripting (XSS) vulnerabilities. For example, < becomes <, ensuring the browser renders the bracket rather than interpreting it as a script tag.