πŸ”£ HTML Entity Encoder/Decoder

Converts characters with special meaning in HTML into entities, or turns entities back into their original characters.

How to use

  1. Enter text or HTML code.
  2. Click "Encode" or "Decode".
  3. Copy the result to use it.

🎯 Use Cases

Example

Input
<div class="box">ν…μŠ€νŠΈ & 기호</div>
Output
&lt;div class="box"&gt;ν…μŠ€νŠΈ &amp; 기호&lt;/div&gt;

Clicking "Encode" converts the < > & characters into the &lt; &gt; &amp; entities. Double quotes (") are left untouched because they carry no special meaning inside a text node.

FAQ

Which characters get encoded?
<, >, &, " and other characters with special meaning in HTML are converted into entities.
Are numeric references decoded too?
Yes. Both named references (&) and numeric references (&) are decoded accurately using the browser's built-in parser.
Is the content I enter sent to a server?
No. It's processed entirely using browser DOM APIs.

More Coding Tools

πŸ“˜
JSON Formatter
Prettify, validate & minify JSON
πŸ—“οΈ
Timestamp Converter
Convert Unix timestamp ↔ date
🧩
JSON String Encoder
Convert text ↔ JSON string literal
✨
JS/CSS Formatter
Indent & tidy JS/CSS code
βœ‚οΈ
JS/CSS Minifier
Strip comments & whitespace
🧽
HTML Formatter
Indent HTML by tag structure
🧹
XML Formatter
Indent XML by tag structure
πŸ—ƒοΈ
SQL Formatter
Break SQL into clauses & indent
πŸ“Š
Excel to HTML Table
Convert spreadsheet data to HTML TABLE
⛓️
Link Extractor
Extract href/src links from HTML
🎨
Color Picker
Get HEX, RGB & HSL color codes
🐘
PHP Syntax Checker
Check bracket/string pairing (practical checker)
πŸ—„οΈ
MySQL Syntax Checker
Check bracket/quote pairing (practical checker)
πŸ”
HTML5 Validator
Check tag pairing, duplicate id, missing alt
✍️
Online HTML Editor
Write & edit HTML visually