</>

HTML Entity Encoder & Decoder

Free online HTML entity encoder/decoder. Encode or decode HTML entities instantly with named, decimal, and hex formats.

Format
Scope
Input
Result

Private & Secure

Your data stays in your browser. No text is ever sent to a server.

tools.html-entity-encoder.ui.featureInstant

tools.html-entity-encoder.ui.featureInstantDesc

tools.html-entity-encoder.ui.featureDualMode

tools.html-entity-encoder.ui.featureDualModeDesc

Frequently Asked Questions

什么是 HTML 实体编码?

HTML 实体编码将特殊字符转换为安全的表示形式,以避免在 HTML 文档中被误解为标记。例如,< 转换为 &lt;,> 转换为 &gt;。

实体名称、十进制和十六进制有什么区别?

实体名称使用记忆化名称如 &amp;;十进制实体使用数字如 &#60;;十六进制实体使用十六进制数字如 &#x3C;。这三种格式在浏览器中渲染效果相同。

哪些字符需要编码?

危险字符包括 <、>、&、" 和 ',因为它们可能破坏 HTML 结构。所有非 ASCII 字符也可以编码以确保跨系统兼容性。

Related Tools

HTML Entity Encoder & Decoder - Free HTML Entity Encoder/Decoder - CoolTool