FormatterHQ

HTML Tools

Beautify, minify, validate, preview, escape, convert and generate HTML: everything from quick snippets to complete pages, in your browser.

.htaccess Redirect Generator Generate Apache .htaccess 301/302 redirects from old → new URL pairs, plus force-HTTPS, www and trailing-slash rules. Angular Formatter Format Angular component templates with structural directives, bindings and pipes. BBCode to HTML Converter Convert forum BBCode such as [b], [url], [quote], [list] and [code] into clean, safe HTML markup instantly. BBCode Viewer Preview BBCode forum posts before publishing: bold, colours, links, quotes, lists, code and spoilers rendered live. Broken Link Checker Find broken links on a web page: every link is checked and 404s, errors and redirects are listed. Code Syntax Highlighter Highlight source code as self-contained HTML with inline styles - paste the coloured snippet into blogs, e-mails or docs. Content Security Policy Evaluator Parse a Content-Security-Policy header and flag risky directives such as unsafe-inline, wildcards, missing object-src and base-uri. CSV to HTML Table Converter Convert CSV to HTML online for free. Get clean table markup with a live preview. Excel to HTML Table Converter Convert Excel to HTML online for free. Get clean table markup with a live preview. Favicon Generator Make favicon.ico, Apple touch and Android icons plus site.webmanifest and HTML tags from an image or from text/emoji. ZIP download. Handlebars / Glimmer Formatter Format Handlebars, Glimmer and Ember templates online. Hreflang Tag Generator Generate hreflang annotations for multilingual sites as <link> tags, sitemap entries or HTTP headers, with code validation. HTML Color Names All 148 CSS and HTML colour names with HEX, RGB and HSL values. Search, switch between grid and table, and copy with a click. HTML Decode Decode HTML entities such as &amp;amp;, &amp;eacute; and &amp;#8364; back into the characters they represent. HTML Encode Encode text as HTML entities: markup characters and all non-ASCII symbols become safe numeric or named references. HTML Entities List Searchable list of 1,400+ named HTML character entities with decimal and hex codes, code points and CSS escapes. Click to copy. HTML Entities to Text Turn HTML entities (named, decimal and hex) back into plain Unicode text. HTML Escape HTML escape online: convert special characters into entities so text is safe inside HTML. HTML Formatter Beautify or minify HTML online. Fixes indentation of tags, inline CSS and scripts. HTML Link Generator Create an HTML anchor tag with link text, title, target _blank, nofollow or sponsored rel and simple inline styling. HTML Minifier Minify HTML online including inline CSS and JavaScript. HTML Pretty Print Opinionated HTML pretty print with Prettier: closes implied tags, enforces a line width and gives the same output for any input layout. HTML Stripper Strip HTML tags from markup and keep only the readable text, with entities decoded. HTML Table Generator Generate HTML table code with any number of rows and columns, header row, caption, border and padding - with live preview. HTML Table to CSV Converter Convert HTML to CSV online for free. Nested data is flattened into columns. HTML Table to JSON Converter Convert HTML to JSON online for free. Get formatted JSON with types detected automatically. HTML Table to TSV Converter Convert HTML to TSV online for free. Paste the result straight into a spreadsheet. HTML Table to XML Converter Convert HTML to XML online for free. Attributes, arrays and root element are configurable. HTML Table to YAML Converter Convert HTML to YAML online for free. Clean, readable YAML with configurable indentation. HTML to BBCode Converter Convert HTML into forum-friendly BBCode: bold, links, images, lists, quotes, tables, code blocks and inline colours. HTML to Jade Converter Turn HTML into Jade syntax for legacy .jade views, using only markup that also keeps working after an upgrade to Pug. HTML to JSX Converter Convert HTML markup to valid JSX for React: className, htmlFor, style objects, self-closing tags and comments handled automatically. HTML to Markdown Converter Convert HTML to clean Markdown: headings, lists, links, images, code blocks, tables and strikethrough, with style options. HTML to PHP Converter Convert HTML into PHP echo statements, a string variable or a heredoc block with every quote and dollar sign safely escaped. HTML to Pug Converter Convert HTML to Pug template syntax: indentation-based tags, #id and .class shortcuts, attributes and text blocks. HTML to Text Converter Extract readable plain text from HTML: keeps paragraphs, headings, lists and tables, drops tags, scripts and styles. HTML Unescape HTML unescape online: turn entities back into readable plain text instantly. HTML Validator Validate HTML markup online and find unclosed, mismatched or malformed tags. HTML Viewer Paste HTML or open a file and see it rendered instantly in a safe, sandboxed live preview. Free online HTML viewer. HTTP Status Codes Searchable list of the HTTP status codes in use, from 100 to 511, with a plain explanation of when each response is used. Hyperlink Generator Generate a hyperlink as HTML, Markdown, BBCode and plain text at once - ready for websites, READMEs, forums and e-mails. Image to Base64 Convert PNG, JPG, GIF, WebP, SVG or ICO images to Base64 data URIs for HTML, CSS and JSON. Jade to HTML Converter Render legacy .jade templates to HTML and find the deprecated Jade syntax to fix before moving to Pug or plain HTML. JPG to Base64 Convert a JPG/JPEG photo to a Base64 string or data URI, with preview and size information. JSON to HTML Table Converter Convert JSON to HTML online for free. Get clean table markup with a live preview. Lorem Ipsum Generator Generate lorem ipsum placeholder text by paragraphs, sentences or words, optionally wrapped in HTML <p> tags. LWC Formatter Format Salesforce Lightning Web Components (LWC) HTML templates online. Mailto Link Generator Create mailto: links with pre-filled recipients, CC, BCC, subject and body — correctly URL-encoded, with the HTML <a> tag. Markdown to HTML Converter Convert Markdown to clean HTML online with GitHub Flavored Markdown: tables, task lists, fenced code and strikethrough. Marquee Generator Generate HTML marquee code for scrolling text with direction, speed, behaviour, colours and pause-on-hover, with live preview. Meta Tag Generator Generate SEO meta tags for your page head: title, description, keywords, robots, canonical, Open Graph and Twitter cards. MIME Type Lookup Find the MIME / Content-Type for a file extension or the extensions for a media type — about 150 common types. Online HTML Editor Write and edit HTML with autocompletion and a sandboxed live preview, then copy or download the finished document. Open Graph & Twitter Card Preview Paste your page’s meta tags and preview the link on Facebook, X/Twitter, LinkedIn, Slack and Discord, with fixes for missing tags. PNG to Base64 Convert a PNG image to a Base64 string or data URI with a live preview. Pug to HTML Converter Compile Pug templates to HTML online: tags, #id/.class shortcuts, attributes, block text, interpolation and comments. Real-Time HTML Editor A real-time HTML playground for learning: edit HTML, CSS and JavaScript and watch the result update as you type. Responsive Website Tester Preview any website on phone, tablet, laptop and desktop screen sizes side by side to check your responsive design. Robots.txt Generator Create a robots.txt file: allow or block paths, block AI crawlers and specific bots, set crawl-delay and add your sitemap URL. SERP Snippet Preview & Meta Length Checker Check title tag and meta description length in pixels and characters and preview your Google search result on desktop and mobile. Source Code Viewer View source code with syntax highlighting and line numbers. Open any code file or paste it - HTML, PHP, JS, Python and more. SQL to HTML Table Converter Convert SQL to HTML online for free. Get clean table markup with a live preview. SRI Hash Generator Generate Subresource Integrity (SRI) sha384 hashes and ready-to-paste <script> or <link> tags with integrity and crossorigin attributes. SVG to Base64 Convert SVG markup or an .svg file to a Base64 data URI for CSS backgrounds, img tags and JSON. SVG Viewer Preview SVG code or files instantly, check them for XML errors, see width, height and viewBox, and download the image. Table to HTML Converter Convert CSV, TSV, Markdown or JSON data into a clean HTML table with optional CSS styling and a live preview. Tableizer: Excel to HTML Table Paste cells copied from Excel or Google Sheets and get a styled HTML table. Choose header colour, font and row striping. Text to HTML Converter Paste formatted text from Word, Google Docs or a web page, or type plain text, and get clean HTML code. Removes inline styles, classes and Word markup. Text to HTML Entities Convert plain text, symbols and accented letters into named HTML entities like &amp;copy; and &amp;hearts;. UTM Campaign URL Builder Build Google Analytics campaign URLs with utm_source, utm_medium, utm_campaign, utm_term and utm_content, consistently formatted. What Is My Screen Resolution? See your screen resolution, browser viewport size, device pixel ratio, colour depth and media-query features instantly. WhatsApp Link Generator Create a wa.me click-to-chat link with a pre-filled message for your website, e-mail signature or QR code. Word to HTML Converter Convert Word .docx documents to clean, semantic HTML with headings, lists, tables, links and images — right in your browser. XML Sitemap Generator Turn a list of URLs into a valid sitemaps.org XML sitemap with optional lastmod, changefreq and priority — ready for Search Console. XML to HTML Table Converter Convert XML to HTML online for free. Get clean table markup with a live preview.

HTML tools for writing, checking and converting markup

HTML is the foundation of every web page and HTML email, and it travels between many systems: CMS editors, React components, template engines, forums and documentation. These HTML tools help you tidy markup, see how it renders, check it for errors and convert it into the format the next system needs.

Pick the tool for your task

Escaping and entity tools handle special characters, BBCode converters bridge forum content, and the responsive website tester shows a finished page at phone, tablet and desktop widths.

Example workflows

Publishing a Word document on a website: convert the .docx to HTML, tidy it with the formatter, preview it, and paste it into your CMS's source view. Clean semantic markup inherits your site's styles instead of fighting them.

Turning a design mockup into a React component: format the exported HTML, convert it to JSX, then replace repeated blocks with loops and hard-coded text with props.

Checking a page before launch: generate meta tags, validate the markup, then look at the page on several screen sizes.

HTML for email

Email clients support only a subset of HTML and CSS. Layouts are still built with tables and inline styles, and many clients ignore style blocks, web fonts and modern layout properties. Generate table markup with the table generator, preview the template in the HTML viewer, and always send a test message to real inboxes before a campaign.

HTML tips

  • Use semantic elements (header, nav, main, article, footer) and a logical heading order for accessibility and search engines.
  • Give every meaningful image an alt text.
  • Escape user-provided text before inserting it into HTML to prevent cross-site scripting.
  • Previews run in a sandboxed frame, so you can inspect unfamiliar HTML safely.

Frequently asked questions

How do I view HTML code as a web page?
Paste the code into the HTML viewer. It renders the markup in a sandboxed frame, including CSS and JavaScript contained in the document.
What is the difference between formatting and minifying HTML?
Formatting adds indentation and line breaks so people can read the code. Minifying removes unnecessary whitespace and comments to make the file smaller for browsers.
Can I convert HTML to React?
Yes. The HTML to JSX converter renames attributes like class and for, turns inline styles into objects and closes void elements so the markup works in React components.
How do I extract text from HTML?
Use HTML to text for readable plain text with paragraphs and lists preserved, or HTML to Markdown if you want to keep headings, links and emphasis.