PostCSS Remove Duplicate Values

Official Interactive Playground

Plugin Configuration

Leave empty to process all selectors

Remove empty rules by default

Toggle to preserve empty rules

Quick Test Examples

Select a test scenario to begin

Input CSS

Output CSS

Processing Results

0
Input Rules
0
Output Rules
0
Duplicates Removed
0
Empty Rules Removed
0
Rules Skipped

Plugin Features

Duplicate Removal

Intelligently removes duplicate CSS properties while preserving the last declaration

!important Handling

Properly handles !important declarations with priority-based logic

Vendor Prefixes

Smart handling of vendor-prefixed properties and fallbacks

Selector Filtering

Process only specific selectors using string, RegExp, or function matching

Empty Rule Cleanup

Optionally remove empty CSS rules for cleaner output

Zero Configuration

Works out of the box with sensible defaults and optional customization