Tool
HTML Entity Encode Decode converts characters such as ampersands, angle brackets, and quotes into entity references or decodes existing entities for inspection. Encoding.
HTML Entity Encode Decode converts characters such as ampersands, angle brackets, and quotes into entity references or decodes existing entities for inspection. Encoding.
Live Tool
HTML Entity Encode Decode converts characters such as ampersands, angle brackets, and quotes into entity references or decodes existing entities for inspection. Encoding.
Tool Workspace
HTML Entity Encode Decode converts characters such as ampersands, angle brackets, and quotes into entity references or decodes existing entities for inspection. Encoding.
Fallback
HTML Entity Encode Decode converts characters such as ampersands, angle brackets, and quotes into entity references or decodes existing entities for inspection. Encoding.
HTML Entity Encode Decode converts characters such as ampersands, angle brackets, and quotes into entity references or decodes existing entities for inspection. Encoding.
Developer Tools
This page loads the live tool workspace directly.
Developer Tools
HTML Entity Encode Decode converts characters such as ampersands, angle brackets, and quotes into entity references or decodes existing entities for inspection. Encoding is context-dependent; it does not sanitize untrusted HTML or make it safe to insert into a page.
Reference: HTML Living Standard: character references
No. Encode characters that have special meaning in the context where the value is placed, and let a trusted template system handle normal text output.
Not on its own. Safe handling depends on the insertion context, proper escaping, sanitization where HTML is allowed, and security controls in the application.
& is the entity reference for an ampersand. It may display as & in rendered HTML, while source code keeps the encoded representation.