HTML entity conversion
Convert between HTML entities and normal text.
- views
- —
- favorites
- —
| character | Entity | Description | Operation |
|---|---|---|---|
| < | < | less than sign | |
| > | > | Greater than sign | |
| & | & | ampersand | |
| " | " | double quotes | |
| ' | ' | single quote | |
| No line breaks with spaces | | No line breaks with spaces | |
| © | © | Copyright | |
| ® | ® | Registered trademark | |
| ™ | ™ | Trademark | |
| — | — | dash |
Tool description and FAQ
Tool Guide
01HTML text and entity conversion
Encoding converts common HTML special characters into entities, and decoding uses the entities library to recognize named entities and numeric character references. Input and output are displayed as text, no HTML is executed.
02Common entity comparison
The comparison table below lists common characters, entities and descriptions, and entities can be copied one by one. Decoding supports many more entities than this table; the lookup table is not a complete character list.
03File, edit and save results
Open or drag a text file into the input area and use line numbers and search to locate the content. Results can be copied or downloaded; reverse transformation puts the current results back into the input area and switches direction. Inputs and files can be up to 5 MB and are only processed in the current browser. Content is not uploaded and will not be automatically saved.
FAQ
Q1Why does & appear?
This usually means that text that has already been encoded is being encoded again. Please confirm whether entity encoding has been performed upstream to avoid repeated conversion.
Q2Why is the decoded tag not being rendered?
The result area always displays plain text to facilitate inspection of the actual content, and user input is not executed as web page code.
Q3Are non-breaking spaces the same as regular spaces?
Not the same. Corresponds to U+00A0, which affects line breaking behavior in typesetting. It looks like spaces after copying, but the code point is different from ordinary U+0020.