HTML Entities

Encode and decode HTML entities, escape special characters

HTML Entities is a free online Text tool. Encode and decode HTML entities, escape special characters Related terms: html · 实体 · entity · 编码 · 解码 · 转义. Use it on this page without signing in.

输出(实体
点击「转换」查看结果
常见字符对照
字符命名实体数字实体
&&&
<&lt;&#60;
>&gt;&#62;
"&quot;&#34;
'&#39;&#39;
©&copy;&#169;
&euro;&#8364;
&hellip;&#8230;
Help

使用说明

  1. 在输入框粘贴文本
  2. 选择「编码」将 < & " ' 转为实体,或「解码」还原实体为字符
  3. 支持命名实体(&amp;)与数字实体(&38;)
  4. 结果实时显示,一键复制

常见问题

  • 数据会上传吗? 全程浏览器本地处理,不发送任何数据
  • 什么时候用? 在 HTML 中展示用户输入、富文本编辑器内容时防止 XSS 注入
  • 解码后乱码? 请确认输入是合法的 HTML 实体序列

More Text

View all

FAQ about HTML Entities

What can HTML Entities do?

HTML Entities is a Text tool. Encode and decode HTML entities, escape special characters You can finish the job on this page.

Who should use HTML Entities?

Anyone handling html · 实体 · entity · 编码 · 解码 · 转义 who does not want to install desktop software can use HTML Entities in the browser.

Is HTML Entities safe? Is my data uploaded?

This tool runs in your browser. We do not collect the content you enter into HTML Entities just because you used it.

What similar tools exist?

Related tools in the same Text group are listed at the bottom of this page.