Markdown & HTML Tools
HTML Entity Encoder / Decoder
Encode special characters to HTML entities for safe embedding in HTML, or decode HTML entities back to readable characters. Handles named entities (&, <), numeric (<), and hex (<) forms.
All conversion happens in your browser; your text is never sent to a server
Features
- Encode mode: converts &, <, >, ", ' to named HTML entities
- Decode mode: converts all entity forms back to characters
- Handles named, decimal numeric, and hex numeric entities
- Toggle between encode and decode with one click
- Copy result with one click
- Browser-only
How to use it
- Paste your text or HTML into the input.
- Select Encode or Decode mode.
- Result appears instantly.
- Copy the output.
Use cases
- Encoding user input before inserting into HTML to prevent XSS
- Decoding HTML entities in scraped web content
- Encoding code snippets for display inside <pre> blocks
- Debugging entity encoding in HTML templates
Limitations
- Use encode mode before placing literal characters into HTML text content.
- Complex malformed markup may need manual cleanup after conversion.
- Review generated output before using it in production or publishing workflows.
Related tools
HTML to Text
Remove HTML tags from any HTML and get clean plain text. Preserves headings, lists, links as text, and paragraphs. Browser-only.
Use toolHTML Minifier
Minify HTML by removing comments, whitespace, and optional attributes. See exact bytes saved. Browser-only, free.
Use toolMarkdown to HTML
Convert Markdown to HTML instantly in your browser. Supports GFM tables, code blocks, footnotes, see a live preview and copy the HTML output.
Use toolHTML to Markdown
Convert HTML to clean Markdown instantly. Handles headings, links, bold, lists, tables, and code blocks. All in your browser, no server required.
Use toolMarkdown Previewer
Preview Markdown as rendered HTML in real time. Supports GitHub Flavored Markdown, tables, task lists, code blocks, fenced code with syntax hints. Browser-only.
Use toolText to HTML
Convert plain text to basic HTML. Wraps paragraphs in <p> tags, converts line breaks, and escapes special characters. Free, browser-only.
Use toolFrequently asked
What entities are encoded?
& → &, < → <, > → >, " → ", ' → '. All other characters are left unchanged.
Does HTML Entity Encoder Decoder upload my input?
Your file or text is processed in your browser and is not uploaded.
What does HTML Entity Encoder Decoder create?
It creates entity-safe text. Use encode mode before placing literal characters into HTML text content.
Can HTML Entity Encoder Decoder handle every edge case?
No. Markup and table formats vary. This tool focuses on practical snippets and common writing workflows.