---
title: "Clear formatting animated icon"
description: "Clear formatting animated icon (Text & document editing). Styling is removed while the text stays. The underline beneath the T retracts and does not return. Light: quiet retraction. Strong: the clear badge presses, the underline snaps away, the badge rebounds once."
canonical: https://generativeicons.com/icons/clear-formatting/
---

# Clear formatting animated icon

Styling is removed while the text stays. The underline beneath the T retracts and does not return. Light: quiet retraction. Strong: the clear badge presses, the underline snaps away, the badge rebounds once.

- Id: `clear-formatting`
- Category: Text & document editing
- Search terms: remove formatting, strip formatting, plain text, clear styles, reset style, remove style, unformat, normal text, default style
- Two states: prepared to result, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/clear-formatting.lottie (dotLottie, 6503 bytes, sha256 5df8d9700405e2dd9d8ba2004fb0e878d67f8920cd3411d1dbb744825cd9cbaa)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add clear-formatting
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/clear-formatting.mjs';

export function ClearFormattingIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/clear-formatting.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/clear-formatting/ · https://generativeicons.com/api/icons/clear-formatting
