Skip to content
Yunedia Tools

HTML 實體轉換器

將文字編碼為 HTML 實體(最簡、命名或數字形式),並將實體解碼回文字。

使用方法

Enter text, then Encode to convert it to HTML entities or Decode to turn entities back into characters. Three encode modes are available: Minimal converts only & < > " and '; Named uses named entities such as &copy; where a name exists and numeric references otherwise; Numeric converts every non-ASCII character to a decimal reference such as &#169;.

注意事項

Everything runs in your browser. Decoding supports named entities from this tool's table, decimal references (&#169;) and hexadecimal references (&#xA9;). Unknown names are left unchanged.

常見問題

Is &apos; decoded?

Yes, &apos; maps to '. Note it was not part of HTML4.

Can Japanese characters become named entities?

No named entities exist for them, so Named mode falls back to numeric references.