Encode text into HTML entities or decode entities back into plain characters. When you want to display code, angle brackets or ampersands on a web page, they must be escaped as entities like <, > and & so the browser renders them as text instead of interpreting them as tags. This tool escapes the characters that matter for safe display and correctly reverses named and numeric entities when decoding. It is handy for writing documentation, embedding examples in blog posts and sanitizing snippets for output. Choose encode or decode, paste your input, and copy the result. Everything is processed in your browser, so your content stays private and is never sent to a server.