Preparing HTML for cleaning
Paste an HTML fragment from an editor's code view or a complete HTML document into the left-hand field. Copying ordinary text from Word does not always transfer its HTML to a plain text field. To preserve headings, lists and links, provide code with the appropriate tags.
Clicking 'Clean HTML' displays the result on the right. 'Copy result' copies the code, and 'Clear all' empties both fields. Processing happens in your browser; the tool does not upload the result to your website.
What remains and what is removed
The cleaner preserves h1 to h6 headings, p paragraphs, ul and ol lists with li elements, table tags, a links, img images, strong, em and br. It converts b to strong and i to em. Styles, class and id attributes are removed. script, style and template elements are removed with their contents; text inside other disallowed tags may remain.
Links retain href, title and target. Images retain src, alt, width and height; table cells retain colspan and rowspan. Complete documents also have lang, meta and title processed. Some additional attributes, such as srcset and original link rel values, are not retained. Links with target="_blank" receive noopener noreferrer.
A cleaning example and how to check the result
For example, <p class="tekstas" style="color:red"><b>SEO auditas</b></p> becomes <p><strong>SEO auditas</strong></p>. The content and bold emphasis remain while external formatting is removed. Your website's CSS then determines its appearance.
Preview the result in your content management system before publishing. Check links, image URLs, table headers and heading hierarchy. The cleaner does not repair broken links, create ALT text or perform a full accessibility or security audit. If the original fragment included a form, video or embedded map, preserve that functionality separately.