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.
点击「转换」查看结果| 字符 | 命名实体 | 数字实体 |
|---|---|---|
| & | & | & |
| < | < | < |
| > | > | > |
| " | " | " |
| ' | ' | ' |
| © | © | © |
| € | € | € |
| … | … | … |
使用说明
- 在输入框粘贴文本
- 选择「编码」将 < & " ' 转为实体,或「解码」还原实体为字符
- 支持命名实体(&)与数字实体(&38;)
- 结果实时显示,一键复制
常见问题
- 数据会上传吗? 全程浏览器本地处理,不发送任何数据
- 什么时候用? 在 HTML 中展示用户输入、富文本编辑器内容时防止 XSS 注入
- 解码后乱码? 请确认输入是合法的 HTML 实体序列
More Text
View allWord Count
Count characters, words and lines, CJK and Latin separately
Text Deduplicator
Deduplicate lines, remove empty lines, trim and sort
Case Converter
Convert case, full/half width, camelCase / snake_case / kebab-case
Simplify ⇄ Traditional
Convert between simplified and traditional Chinese
Text Diff
Compare two texts line by line
Markdown to HTML
Convert Markdown to HTML with live preview and export
Markdown Stripper
Strip Markdown markers, keep plain text and line breaks
Regex Tester
Real-time regex testing with match highlighting
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.