ToolMochi

HTML Entity Escaper

Escape <, >, & and quotes into HTML entities, or turn entities back into readable text.

Mode
01Input
0
02Output
0
This tool runs entirely in your browser. Your input is never uploaded.

How to use

  1. 1Paste the HTML snippet or plain text you want to escape
  2. 2Choose escape or decode
  3. 3Copy the result and paste it where you need it

FAQ

Why escape HTML?

Unescaped < and > are parsed as tags by the browser, which can break layout and create XSS risks. Escaping lets you display the original code safely.

Which entity formats are supported?

Decoding supports common named entities (&amp;, &nbsp;), decimal entities (&#39;) and hexadecimal entities (&#x27;). Unknown entities are left untouched.

Is my text uploaded?

No. Escaping and decoding run locally in your browser.

Related tools

JSON Formatter & Validator

Format, minify and validate JSON, compare two payloads path by path, and escape or unescape JSON strings.

Cron Expression Parser

Parse crontab expressions into a plain-language schedule and the next 5 run times.

Base64 Encoder & Decoder

Encode text to Base64 or decode it back to UTF-8, with an optional URL-safe alphabet. Everything runs locally.

URL Encoder & Decoder

Percent-encode or decode URLs and query values, with component, full-URL and form modes.