Clean up your HTML by removing attributes from opening <template> tags. Paste your code into the input box, click Remove attributes, and the tool will change tags such as:
<template> Tag Attributes Remover
Paste HTML below to remove attributes from opening template tags.
<template id="card" class="hidden">
<div>Card content</div>
</template>
to:
<template>
<div>Card content</div>
</template>
The tool keeps the <template> tags and their contents intact. It only removes attributes from opening <template> tags. Use Copy output to copy the cleaned HTML.
How to use?
- Paste your HTML into the input box.
- Click Remove attributes.
- Review the output.
- Click Copy output to copy it to your clipboard.
Frequently Asked Questions
What attributes are removed?
All attributes on opening <template> tags, such as id, class, style, and data-*.
Does this remove the <template> element?
No. It changes the opening tag to a plain <template> tag and leaves the closing tag and contents unchanged.
Are other HTML tags affected?
No. The tool only targets opening <template> tags.
Does it work with uppercase tags?
Yes. It handles tag names regardless of letter case, such as <TEMPLATE id="example">.
Is my HTML uploaded?
The tool processes the HTML in your browser. Its code does not send your input to a server.