HTML Entities Encoder
Encode text to HTML entities or decode them back — instantly, in your browser.
How it works
HTML entities let you display characters that would otherwise be interpreted as markup — like <, > and & — or that aren't easy to type. This tool encodes your text into safe HTML entities, or decodes entities back into plain characters, entirely in your browser. Encoding converts the reserved characters to their named entities and any non-ASCII character (accents, symbols, emoji) to a numeric entity, so the result is safe to drop straight into HTML. Nothing is uploaded.
Encoding and decoding
Paste text and press Encode to make it HTML-safe — useful when you need to show code samples, user-supplied text, or special characters inside a page without the browser treating them as tags. Paste entities and press Decode to recover the original text; the decoder understands both named entities (é) and numeric ones (é). The result appears below, ready to copy.
Why it matters
Encoding the reserved characters < > & " ' is the simplest defence against broken layouts and a common step in preventing HTML injection when displaying untrusted text. It's also handy for emails, XML and any place where markup characters need to appear literally. Because everything runs locally, you can safely encode sensitive snippets without sending them anywhere.
Frequently asked questions
Does it use named or numeric entities?
Named entities for the five reserved characters, and numeric entities for anything above standard ASCII, which keeps output compact and universally valid.
Can it decode any entity?
Yes. Decoding uses the browser's own HTML parser, so it handles named and numeric entities exactly as a page would.
Is my text uploaded?
No. Encoding and decoding happen entirely in your browser and nothing you enter leaves your device.