Skip to content
empinet.dev
Encoding

HTML Encode

Convert characters with special meaning in HTML into entities so markup can be displayed as text.

Encode workspace

Escape text for safe display inside HTML source.

Text or HTML input
Encoded HTML entities

Your text stays on this device.

Characters this tool escapes

Ampersands, angle brackets, double quotes, and apostrophes are replaced with their HTML-safe entity forms. Unicode and ordinary text remain unchanged.

Useful for showing markup

Encoding lets examples such as HTML tags appear as visible text instead of being interpreted as page elements.

HTML Encode FAQ

Does this sanitize untrusted HTML?

It escapes the five special characters in the supplied text. Application security still depends on using the correctly escaped value in the correct output context.

Does it change Unicode text?

No. Letters, emoji, and other Unicode characters are preserved.