Convert special HTML characters to their safe entity equivalents
Prevent cross‑site scripting by encoding HTML special characters
Choose encoding level (HTML5/HTML4/XML) and mode (special chars, non‑ASCII, extensive)
Output numeric entities as hexadecimal (<) instead of decimal (<)
All processing happens locally in your browser
Convert special characters in HTML to their safe entity equivalents to prevent XSS and ensure proper display.
<script> to <script>Our HTML encoder converts special characters to their corresponding HTML entities based on your chosen settings:
Select the HTML version (HTML5/HTML4/XML), the mode (which characters to encode), and whether to use hexadecimal numbers.
The tool scans your text for characters that need escaping (e.g., < becomes <).
The result is a string safe for embedding in HTML, with all special characters replaced by entities.
<div> <h1>Quraim Soft Tools</h1> </div>
<div> <h1>Quraim Soft Tools</h1> </div>
title, alt)