SheepDev

HTML entity converter

HTML entity converter lets you encode and decode HTML character references as text in your browser.

HTML entity converter

⌂ Inputs and results stay in this browser and are not automatically stored or sent.

Settings
Waiting for input
Auto-update for inputs up to 16 KiB
Text to convertTEXT · 0 B
0 lines
Edit & view

Waiting for input

Complete text result

Supports amp / lt / gt / quot / apos / nbsp and numeric references. Other names remain unchanged. Never executed as HTML.

How to use

Decode character references such as &, or encode text into references. Inspect the output as text, not executed HTML.

References remaining after decoding can indicate multiple encoding layers. This conversion does not establish that the resulting text is safe to insert into another site's HTML.

Examples

<div class="sample">Sheep & Dev</div>

Principles and limits

Each input is limited to 1,048,576 bytes, output to 33,554,432 bytes, and processing to 5,000 ms. Input is never silently truncated.

Guides

Related tools

Encoding and character sets

Unicode escape converter

Unicode escape converter lets you convert between characters and Unicode or hexadecimal escapes in your browser.

Text and regular expressions

Markdown preview

Markdown preview lets you preview Markdown with raw HTML and external images disabled in your browser.