URL Encoder
Percent-encode text for safe use in URLs.
Escape &, <, >, quotes and optionally all non-ASCII characters into HTML entities, or decode entities back to text.
Runs in your browser. Your input is never uploaded.
Choose Encode or Decode.
Paste text.
Copy output.
Input
<a href="x">Tom & Jerry</a>Output
<a href="x">Tom & Jerry</a>Percent-encode text for safe use in URLs.
Encode text to Base64 or decode it back, with full Unicode support.
Beautify HTML with consistent indentation.
Escaping for HTML text context helps, but attributes, URLs and scripts need context-specific escaping.
No, a text-only parser is used.
Common named entities and all numeric (decimal/hex) entities.
Paste or type input above, or press Sample to see an example.