HTML Entity Encoder / Decoder
HTMLエンティティのエンコード・デコードを行います。全ての処理はブラウザ上で行われます。
How to Use the HTML Entity Encoder / Decoder
This free online HTML entity encoder and decoder converts special characters to their corresponding HTML entities and vice versa. Whether you need to safely embed text in HTML documents or decode entity-encoded strings back to readable text, this tool handles it instantly in your browser with no server communication.
What Are HTML Entities?
HTML entities are special codes used to represent characters that have special meaning in HTML or characters that cannot be easily typed on a keyboard. For example, the less-than sign (<) must be written as < in HTML to prevent the browser from interpreting it as the start of an HTML tag. Similarly, ampersands (&) must be encoded as & to avoid being treated as the start of an entity reference. Other commonly encoded characters include greater-than signs, double quotes, and single quotes.
When to Encode HTML Entities
HTML entity encoding is essential when displaying user-generated content on a web page to prevent Cross-Site Scripting (XSS) attacks. It is also necessary when embedding special characters in HTML attributes, writing HTML code samples in documentation, and working with internationalized content that includes non-ASCII characters. This tool supports encoding all five critical characters (ampersand, less-than, greater-than, double quote, single quote) by default, with an option to encode all non-ASCII characters as numeric entities for maximum compatibility.
Decoding Support
The decoder recognizes named entities such as &, <, >, ", ©, ™, and many more. It also handles numeric entities in both decimal ({) and hexadecimal ({) formats. This makes it useful for debugging HTML source code, extracting readable text from encoded content, and verifying that your encoding process works correctly.
Features
- Encode the five critical HTML characters by default
- Optional encoding of all non-ASCII characters to numeric entities
- Decode named entities, decimal numeric entities, and hexadecimal numeric entities
- Support for surrogate pairs (emoji and supplementary Unicode characters)
- Copy-to-clipboard functionality
- Entirely client-side -- no data leaves your browser
HTMLエンティティ エンコーダー / デコーダーの使い方
この無料オンラインツールは、特殊文字をHTMLエンティティに変換したり、 エンティティを元の文字に復元します。XSS対策やHTML文書内での安全な文字表示に 利用できます。全ての処理はブラウザ上で行われ、データは外部に送信されません。
HTMLエンティティとは
HTMLエンティティは、HTMLで特別な意味を持つ文字や、キーボードから直接入力しにくい 文字を表現するための特殊コードです。例えば、<(小なり記号)は<と記述します。 &(アンパサンド)は&とエンコードする必要があります。
対応エンティティ
デコーダーは&、<、>、"、©、™などの 名前付きエンティティに対応しています。また、10進数({)および 16進数({)の数値エンティティもサポートしています。
開発をもっと効率的に
PR