Convert special characters (like <, >,
&) into HTML entities to safely display them on a webpage, or decode entities back into standard
text. All processing runs locally in your browser.
Open 24 built-in tools from your browser sidebar, use quick actions from the right-click menu, and reach every RizCraft tool without hunting through tabs.
Firefox and Edge versions are coming next. Free to install
Safely encode special characters into standard HTML entities or decode HTML entities
back to readable text with our incredibly fast, free online HTML entity tool.
Convert potentially dangerous characters like <, >, &, and
" instantly to prevent structural errors and secure your applications against devastating
XSS vulnerabilities.
In HTML (HyperText Markup Language), certain characters have reserved programmatic meaning. For instance, the
less-than sign < and the greater-than sign > are strictly used to declare
structural container tags (like <div> or <script>).
However, what happens if you actually want to display a mathematical less-than sign to your reader in a
paragraph of text? If you simply type 5 < 10 directly into your HTML document, the web
browser's parser will mistakenly assume you are attempting to open a new HTML element named "10". This
immediately breaks the layout geometry of your webpage.
An HTML Entity is a string of text that begins with an ampersand (`&`) and ends with a
semicolon (`;`). By replacing the literal character with an entity reference—for example, converting
< to <—the browser knows to render the visual symbol to the reader
without executing it as background code.
Beyond simple visual rendering, HTML Encoding (also known as "escaping") is fundamentally critical for application security. Cross-Site Scripting (XSS) is a severe vulnerability where malicious actors inject javascript code into input fields (like comment boxes, forum posts, or profile bios).
If your server outputs user-submitted content directly to the webpage without encoding it first, an
attacker's payload (e.g., <script src="hacker.js"></script>) will execute
maliciously in the browsers of innocent visitors. By passing untrusted text through our HTML Entity
Encoder, dangerous syntax is neutralized into safe strings (e.g.,
<script src="hacker.js"></script>) which renders safely
as plain text on the page rather than executable javascript logic.
Converting back and forth takes a fraction of a second and requires no strict formatting rules:
&name; equivalents." or
& tags. Decoding reverses the process and restores the text to normal,
human-readable prose.Tell us what to improve or which tool to add next.