Skip to content

HTML 实体编码 / 解码

免费的 HTML 实体编码器和解码器。编码 &, <, > 以及命名/数字引用,或解码回文本。在您的浏览器中运行。

Runs in your browserUpdated Apr 26, 2026

Input

Output

常见问题

Why do I need to escape HTML?

To prevent special characters from being interpreted as HTML tags. < becomes &lt; so the browser shows the character instead of opening a tag.

What characters need escaping?

At minimum: < > & " '. For maximum safety, escape every non-ASCII character to numeric entities like &#x1F600;.

Is my input uploaded?

No — runs entirely in your browser.

Does it handle named entities like &copy;?

Yes — both named (&copy;) and numeric (&#169; or &#xA9;) entities are decoded correctly.

Is the tool free?

Yes — fully free, no signup.

大家也在搜索