Developer Tools
HTML Entity Encoder / Decoder
Encode any text to HTML entities (turning < into <, & into &) or decode HTML entities back to readable text, instantly in your browser. Supports all named entities and numeric character references.
Encoding and decoding happen entirely in your browser
Features
- Encodes <, >, &, ", ' to HTML entities
- Decodes all named and numeric HTML entities
- Handles &#x hex and &#decimal references
- No upload, client-side only
How to use it
- Select Encode or Decode mode.
- Paste your text.
- Result appears instantly.
- Copy the output.
Use cases
- Escaping user-generated content before inserting into HTML
- Decoding HTML entity-encoded database content
- Preparing code snippets for display in HTML pages
Limitations
- Reserved HTML characters can be encoded before placing text into markup.
- Very large input can be slower on older devices.
- This utility is designed for common snippets and local inspection, not as a full security or language-specific validator.
Related tools
URL Encode Decode
URL encode or decode text online. Converts special characters to percent-encoded sequences (%20, %2F, etc.) and back, browser-only, instant.
Use toolBase64 Encode Decode
Encode text to Base64 or decode Base64 to plain text instantly in your browser. Supports standard and URL-safe Base64, Unicode, and binary-safe encoding.
Use toolHTML Minifier
Minify HTML by removing comments, whitespace, and optional attributes. See exact bytes saved. Browser-only, free.
Use toolJSON Formatter
Format and beautify JSON online. Paste minified or messy JSON and get clean, 2-space indented output with syntax validation, instant, in-browser, no upload.
Use toolJSON Validator
Validate JSON syntax online with exact error messages. Get line number, column, and a human-readable explanation for every JSON error, processed in your browser.
Use toolJSON Minifier
Minify JSON by removing all whitespace and line breaks. Paste pretty JSON, get compact JSON for APIs, payloads, and config files. Browser-only, free.
Use toolFrequently asked
When should I encode HTML entities?
Encode any user-provided text before inserting it into HTML to prevent XSS. Never insert raw user input directly into HTML.