<svg> Tag Attributes Remover

Clean up your HTML by removing attributes from opening <svg> tags. Paste your code into the input box and click Remove attributes. The tool changes tags such as 

<svg> Tag Attributes Remover

Paste markup below to remove attributes from opening SVG tags.

<svg class="icon" width="24" viewBox="0 0 24 24"> 

to 

<svg>, while leaving the SVG’s contents and closing </svg> tag unchanged.

How to use?

  1. Paste your HTML or SVG markup into the input box.
  2. Click Remove attributes.
  3. Review the cleaned output.
  4. Click Copy output to copy it to your clipboard.

Check the output before using it. SVG attributes such as viewBox, width, height, and fill can affect how an image looks or displays. Removing them may change the appearance or behavior of your SVG.

Frequently Asked Questions

What attributes does this tool remove?

It removes all attributes from opening <svg> tags, including class, id, width, height, viewBox, and xmlns.

Does it remove the SVG element or its contents?

No. It keeps the opening <svg> tag, everything inside it, and the closing </svg> tag. It only removes attributes from the opening tag.

Will it change attributes on other tags?

No. Attributes on elements such as <path>, <g>, and <img> are not targeted.

Does it work with uppercase <SVG> tags?

Yes. It matches <svg> tags regardless of letter case.

Why might the SVG look different afterward?

Some SVG attributes control sizing, colors, coordinate systems, or styling. Removing them can affect how the SVG renders. If you need to preserve specific settings, review the output and add those attributes back manually.

Is the markup uploaded?

The supplied page processes text in the browser and does not include code that sends it to a server. Don’t paste sensitive content into a website unless you trust its data practices.

19 Views