# HTML Escape

> Escape and unescape HTML entities in the browser. Turn <, >, &, and quotes into entities for safe snippets, or decode &amp; back to characters. Nothing is uploaded. Useful for templates and email HTML.

Runs in your browser. Nothing is uploaded.

[Web](https://toolbuddy.dev/categories/web.md)

## About this tool

Escape <, >, &, and quotes into HTML entities, or decode entities back to characters. Named entities such as &nbsp; and numeric forms are handled on decode. Useful when you need a snippet that will not break a template.

How to use: paste markup or prose, pick Escape or Unescape, copy. Escape is for putting text inside HTML; unescape is for reading encoded CMS export. This is not a sanitizer. Scripts in the input are only entity-encoded, not executed.

Example: Tom & Jerry becomes Tom &amp; Jerry. A tag <div> becomes &lt;div&gt;. Pair with Strip HTML if you wanted tags removed rather than encoded.

Encoding is a local string replace. Email HTML and unpublished copy stay on the device. After load, escaping works offline.

## Related Web tools

- [JSON Formatter](https://toolbuddy.dev/tools/json-formatter.md): Pretty-print, minify, and validate JSON in your browser. Paste a payload, fix indentation, and spot syntax errors without sending data to a server. Works for APIs, config files, and nested objects. Output stays on your device.
- [JavaScript Formatter](https://toolbuddy.dev/tools/javascript-formatter.md): Beautify or compact JavaScript in the browser. Re-indent minified snippets from DevTools, or collapse whitespace for a rough size check. Formatting stays on-device so proprietary scripts are never posted to a beautifier.
- [SQL Formatter](https://toolbuddy.dev/tools/sql-formatter.md): Beautify SQL in the browser with dialect-aware formatting for PostgreSQL, MySQL, SQLite, and T-SQL. Paste a query, pick indent, and copy readable SQL without sending statements to a formatter service.
- [HTML Formatter](https://toolbuddy.dev/tools/html-formatter.md): Beautify or minify HTML markup locally. Re-indent nested tags, collapse whitespace for production snippets, and copy formatted markup without posting templates to a formatter service. Handy for emails, partials, and messy copy-paste from DevTools.
- [CSS Formatter](https://toolbuddy.dev/tools/css-formatter.md): Format and minify CSS in the browser. Expand rules for readability or compress stylesheets for a quick size check. Paste a snippet, tidy selectors and declarations, and copy the result. Proprietary styles are not uploaded.
- [XML Formatter](https://toolbuddy.dev/tools/xml-formatter.md): Pretty-print or minify XML documents in your browser. Indent nested elements from SOAP, RSS, and config files, or collapse whitespace for a compact blob. Parsing and formatting never leave the tab.
