Browser-only encoding tool
HTML Entity Encoder / Decoder
Encode special characters to HTML entities for safe use in HTML documents, or decode entity references back to plain text. Choose between named, numeric, or hexadecimal entity styles.
Local processingNamed & numeric entities.txt file support
Why entities matter
Raw < and & in HTML cause rendering errors. Entities like < display safely in any browser.
Workspace
Configure conversion.
Entity style
Drag and drop a .txt file to load its contents into the input field.
Output
Result and metadata.
Mode
encode
Input chars
0
Output chars
0
Named entities use human-readable names like
&. Numeric (&) and hex (&) work in all HTML versions.