HTML Tools
Escape and compress HTML, format markup, and convert between HTML and other formats.
25 tools available, all running locally in your browser.
- HTML Charset DetectDetect charset from HTML meta tag.TOOL
- HTML Compression RatioMeasure how much of an HTML document is whitespace: original size vs whitespace-stripped size, with the reduction percentage. Sizes are counted in UTF-16 code units, so CJK text and emoji report smaller numbers than their real UTF-8 byte size.TOOL
- HTML Decode AttributeDecode HTML attribute entities.TOOL
- HTML Decode JSDecode JavaScript from HTML script embedding.TOOL
- HTML DiffCompare two HTML snippets line by line.TOOL
- HTML Doctype CheckCheck if HTML has a valid DOCTYPE.TOOL
- HTML Encode AttributeEncode text for safe use in HTML attributes.TOOL
- HTML Encode JSEscape '</script>' occurrences in JavaScript so the code can be inlined in an HTML <script> block. Only the exact '</script>' spelling is rewritten — look-alikes such as '</script >' (with a space) pass through unescaped.TOOL
- HTML Escape CSSEscape CSS content for HTML style blocks.TOOL
- HTML Extract ImagesExtract all image src URLs from HTML.TOOL
- HTML Extract LinksExtract href values from HTML, one per line. Only quoted href="..." attributes are matched — unquoted href=x attributes are not detected.TOOL
- HTML Extract MetaExtract all meta tag content from HTML.TOOL
- HTML Extract TablesExtract HTML tables as JSON.TOOL
- HTML Extract TextExtract all text content from HTML.TOOL
- HTML FormatPretty-print HTML with proper indentation.TOOL
- HTML Fragment ParseParse HTML fragment into tags and text nodes.TOOL
- HTML LintLint HTML for common issues.TOOL
- HTML MergeMerge two HTML snippets.TOOL
- HTML SanitizeSanitize HTML with tag/attribute/URI whitelists (removes scripts, event handlers, unsafe URIs).TOOL
- HTML Template CompileCompile HTML template with {{variable}} placeholders.TOOL
- HTML to PDF (Info)Generate print-friendly HTML with @media print rules.TOOL
- HTML to Svelte WrapperWrap HTML markup in a Svelte component skeleton (empty <script lang="ts"> and <style> blocks). No attribute or event-handler translation happens — your markup is pasted through unchanged.TOOL
- HTML to TextStrip HTML tags and extract plain text.TOOL
- HTML Unescape CSSUnescape CSS content from HTML embedding.TOOL
- HTML ValidateValidate HTML by checking tag balance: every opened tag must be closed. Tags inside comments are counted as real tags, so commented-out markup like <!-- <div> --> is reported as an unclosed tag.TOOL