QuickToolsFree Online Tools

HTML 实体编码/解码

将特殊字符编码为 HTML 实体,或将 HTML 实体解码回纯文本。

html entity encoderhtml encode decodehtml escapehtml unescapehtml entities online

拖放文件到此处,或点击浏览

选项

隐私: 此工具完全在您的浏览器中运行。数据不会发送到我们的服务器。我们不存储、分享或访问您在此处理的任何信息。

示例

Example 1
<p>Hello & "World"</p>
Click "Example 1" above to load
Example 2
&lt;script&gt;alert(&quot;XSS&quot;)&lt;/script&gt;
Click "Example 2" above to load
Example 3
Café & résumé
Click "Example 3" above to load

常见问题

Q: Why encode HTML entities?

A: To safely display characters like <, >, &, " in HTML without being interpreted as markup.

Q: What characters are encoded?

A: All characters with HTML entity equivalents, including &, <, >, ", ', and extended Unicode characters.

Q: Is my data safe?

A: Yes, all processing happens locally in your browser. Nothing is sent to servers.

相关工具

隐私与安全

此工具完全在您的浏览器中运行。数据不会发送到我们的服务器。我们不存储、分享或访问您在此处理的任何信息。