How to use
- Enter text or HTML code.
- Click "Encode" or "Decode".
- Copy the result to use it.
π― Use Cases
- Safely display symbols like < and > inside HTML code
- Attach a code snippet to a forum post or wiki
- Restore the original text from entity-escaped content
Example
Input
<div class="box">ν μ€νΈ & κΈ°νΈ</div>
Output
<div class="box">ν μ€νΈ & κΈ°νΈ</div>
Clicking "Encode" converts the < > & characters into the < > & entities. Double quotes (") are left untouched because they carry no special meaning inside a text node.
Common HTML entities
Characters that have meaning in HTML must be escaped as entities so they are not parsed as markup.
| Char | Entity | Why |
|---|---|---|
< | < | Prevents parsing as a tag start |
> | > | Prevents parsing as a tag end |
& | & | The entity prefix itself β always escape first |
" | " | Double quote inside attribute values |
' | ' | Single quote inside attribute values |
| space | | Non-breaking space β never collapses or wraps |
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.
- What happens without entities?
- A bare < can be parsed as a tag and break the layout β and printing raw user input can become an XSS hole.
- Is different from a space?
- Yes β a normal space may wrap or collapse, while always holds and never breaks the line.
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