↑ ↓ to move, Enter to open, Esc to close

HTML Entity Encoder

Convert special characters to HTML entities (< &) and decode entities back to text.

Show code on a web page or put text into HTML attributes safely by escaping the characters HTML treats specially.

Questions

Which characters must be escaped?

At minimum & and <. Inside attributes, also " or '.