Free online HTML cleaner — clean up & simplify HTML
HTML Washer is a free online HTML cleaner that strips scripts, CSS, and unnecessary markup from messy HTML
Paste HTML to clean it up
Settings
What exactly does it do?
- Fixes malformed HTML (unclosed tags, invalid nesting)
- Reduces the markup to:
<html lang>,<head>,<meta charset name content>,<title>,<body>,<p>,<blockquote cite>,<hr>,<figure>,<figcaption>,<a href title target>,<strong>,<em>,<b>,<i>,<s>,<u>,<br>,<h1>,<h2>,<h3>,<h4>,<h5>,<h6>,<img src alt width height loading>,<picture>,<source srcset sizes media type src>,<video src width height poster controls preload>,<audio src controls preload>,<table>,<caption>,<thead>,<tbody>,<tfoot>,<tr>,<th colspan rowspan>,<td colspan rowspan>,<col span>,<colgroup span>,<code>,<pre>,<ul>,<ol start type reversed>,<li>,<dl>,<dt>,<dd>,<abbr title>,<cite>,<dfn>,<kbd>,<samp>,<var>,<mark>,<small>,<q>,<wbr>,<del datetime cite>,<ins datetime cite>,<sub>,<sup>,<time datetime> - Replaces:
<strike>to<del>,<tt>to<code>,<acronym>to<abbr>,<dir>to<ul>,<listing>to<pre>,<xmp>to<pre>,<plaintext>to<pre> - Reformats the HTML (line breaks, indents)
How to use HTML Washer
- Paste your HTML into the homepage and press the Wash button
- Or upload a file directly
- Download or copy the cleaned result
- Check the full help guide for details on wash modes and options
History of HTML
HTML has roots stretching back to 1969, when IBM's Generalized Markup Language first introduced the idea of intent-based markup. Tim Berners-Lee built on that foundation at CERN in 1989, creating both the web and its markup language. From the browser wars of the mid-1990s through the XHTML detour, the rise of HTML5, and the eventual shift to the WHATWG Living Standard, the language has been shaped as much by politics and competing visions as by technical needs. Read the full timeline covering every major milestone from GML to the present day.