Remove attributes from opening <picture> tags in your HTML. Paste your code into the input box and click Remove attributes to get the cleaned result.
<picture> Tag Attributes Remover
Example
Input
<picture class="gallery" id="hero">
<source srcset="photo.webp" type="image/webp">
<img src="photo.jpg" alt="A landscape">
</picture>
Output
<picture>
<source srcset="photo.webp" type="image/webp">
<img src="photo.jpg" alt="A landscape">
</picture>
Only attributes on the opening <picture> tag are removed. Attributes on <source> and <img> tags remain unchanged.
FAQ
What does this tool do?
It removes attributes from opening <picture> tags, such as class, id, and style.
Does it remove attributes from <img> or <source> tags?
No. Those tags and their attributes are left unchanged.
Does it remove the <picture> tag itself?
No. It keeps the opening and closing <picture> tags and removes only the opening tag’s attributes.
Is my HTML uploaded?
No. The provided JavaScript processes the HTML in your browser.
Can I undo the change?
Your original HTML stays in the input box, so you can edit it or run the tool again.