PRODUCT CONTENT & HTML

HTML to Shopify Description Cleaner

Strip pasted inline styling and unsafe markup while preserving useful product-description structure, links and images.

Currency: not applicable. This tool cleans product-description HTML and does not calculate prices.

Paste supplier HTML

Paste the copied description source. The preview stays as text and is never rendered as a live webpage.

0 characters0 UTF-8 bytes

Clean Shopify-ready HTML

The output updates as you type. Copy it, then review the saved product in your theme.

0 UTF-8 bytes

Image URLs remain external; the cleaner does not upload images to Shopify. Always preview the saved description in your own theme.

Runs in your browser. Your pasted description is not uploaded or saved by this tool.

Clean copied product HTML without losing the useful content

Supplier descriptions often arrive with font declarations, colors, fixed widths and editor-specific wrappers that fight a storefront theme. This browser-based cleaner rebuilds the description from a small, visible allowlist: it removes presentation clutter and active content while keeping ordinary product copy, lists, headings, safe links and images.

What the cleaner keeps and removes

The output keeps paragraphs and headings (pasted h1 tags become h2 because product templates usually use the product title as the page’s main h1), line breaks, ordered and unordered lists, emphasis, blockquotes, horizontal rules, basic tables, links and images. It unwraps common layout and formatting containers such as div, span and font, so their text and supported children remain in reading order without their wrapper styling.

It removes style, class, id, data-* and event-handler attributes instead of trying to guess which supplier styles are harmless. Script, style, iframe, form controls, embedded media, SVG and similar active or theme-dependent elements are dropped with their contents. Comments are removed. Unknown passive wrappers are unwrapped rather than discarded.

How URLs and product images are handled

Links keep only a safe href (HTTP, HTTPS, mailto, tel or a relative path) and an optional title. Script-like protocols and protocol-relative URLs are removed; when a link has no safe destination, its text stays and the empty link wrapper is removed. Images keep a safe HTTP or HTTPS src, optional alt text and sensible dimensions; attributes such as srcset, style, class and alignment are stripped.

Keeping an image URL does not copy the image into your Shopify Files library. A supplier image may be blocked, temporary, hot-linked or unavailable to customers. Upload approved product images to Shopify or your chosen image host, replace the URL, and confirm the alt text and display size in your theme.

A practical cleanup workflow

Copy the description HTML from the supplier or source page and paste it into the left panel. Check the character and UTF-8 byte counts, review which attributes, elements and comments were removed, then copy the cleaned result. Paste it into the product description HTML editor in Shopify and save the product.

Preview the product on desktop and mobile. Check heading order, bullet lists, links, tables, image loading and spacing. The cleaner deliberately removes visual styling; use your Shopify theme for consistent typography and spacing. Edit the product wording for your brand and verify specifications instead of publishing a manufacturer description unchanged.

Why this output is an allowlist, not a promise about every theme

The cleaner reconstructs only the elements and attributes listed above, which makes its output easier to inspect than a broad regex replacement. Unsupported wrappers lose their styling, and features such as video embeds, custom buttons, inline colors, responsive srcset images and arbitrary data attributes will not survive. Add those needs through theme sections or supported Shopify content fields instead.

Shopify’s rich text editor can correct or filter markup, and the rendered result depends on the theme. Treat this output as a starting point: save it in a test product first, inspect the resulting storefront, and adjust the source or theme if an important layout feature disappears.

Scope, privacy and content limits

All parsing and output generation happen in this browser tab. The tool does not contact Shopify, inspect your store, upload images or save the pasted text. Its character and UTF-8 byte counts describe the current text only; Shopify limits can vary by product field, editor and API, so confirm the limit that applies in your own admin or integration.

This is a formatting cleanup aid, not a guarantee that arbitrary HTML is safe in every custom theme or app. Do not use it to preserve scripts, tracking pixels, forms, checkout controls or custom embeds. Review links and image sources, and test the saved result before using it across a catalog.

Platform behavior reference (reviewed October 2026): Shopify rich text editor guide · Shopify product details

Shopify HTML cleaner questions

Does this cleaner remove inline CSS?+

Yes. It removes style, class, id, data-* and event-handler attributes. It unwraps common containers such as div and span while preserving their text and supported child elements. Pasted h1 tags become h2 so the product title can remain the page’s primary heading.

Will my links and images still work?+

Safe HTTP, HTTPS, mailto, tel and relative links are kept. An image is kept only when it has a safe HTTP or HTTPS src; its alt text and reasonable dimensions can remain. The tool does not host or upload the image, so verify that the URL will keep working in your storefront.

Does it remove scripts and embedded widgets?+

Yes. Script, style, iframe, object, embed, form controls, SVG, media players and similar active or theme-dependent elements are removed with their contents. The cleaner is designed for product description text, not interactive widgets.

Can I paste the output directly into Shopify?+

You can paste it into the product description HTML editor, then save and preview the product. Shopify may normalize the markup and your theme controls the final appearance. Check links, images, headings, lists and mobile spacing after saving.

Does it enforce Shopify’s HTML size limit?+

No. The counters show characters and UTF-8 bytes for reference, but content limits depend on the Shopify field, editor or API you use. Check the limit shown by your own workflow; this tool does not submit content to Shopify.

Is the cleaned HTML guaranteed safe for any Shopify theme?+

No. The cleaner drops known active elements and allows only a small set of tags and attributes, but custom themes and apps can interpret content differently. Inspect the output and test it in your storefront before applying it broadly.

NEXT STEP

Make the product page easier to trust.

Clean formatting is one step. Review the product facts, images, links and search snippet before publishing.Explore all tools