Skip to content
PluginStats

tailwindcss-obfuscator weekly downloads statistics

By josedacosta · npm · Webpack plugins

Tailwind CSS class mangler & obfuscator — rename utility classes (bg-blue-500 → tw-a) at build time. Vite, Webpack, Rollup, esbuild, Next.js, Nuxt, SvelteKit, Astro, Solid, Qwik, React Router 7, TanStack Router. Tailwind v3 + v4. Cuts CSS bundle 30–60% an

View on npm Fresh · Dec 6, 2026

tailwindcss-obfuscator has 386 recorded weekly downloads on npm, a decrease of 5.9% over the past 30 days, ranking #2322 of 3,247 tracked listings.

Weekly downloads
386
Official API · Dec 5, 2026
7-day growth
-8.3%
-35 weekly downloads
30-day growth
-5.9%
-24 weekly downloads
90-day growth
+157%
+236 weekly downloads
Rank
#2322
▼ 117 in 7 days

About tailwindcss-obfuscator

<br /><br />

<p align="center"> <a href="https://josedacosta.github.io/tailwindcss-obfuscator/"> <img src="https://raw.githubusercontent.com/josedacosta/tailwindcss-obfuscator/main/docs/public/images/tailwindcss-obfuscator/logo-horizontal.svg" alt="tailwindcss-obfuscator" width="500"> </a> </p> <br /> <h1 align="center">tailwindcss-obfuscator</h1> <p align="center"> <strong>Obfuscate, mangle and shrink Tailwind CSS class names at build time.</strong><br/> Cuts your CSS bundle by <strong>30–60%</strong> and protects your design system from copy-paste reverse-engineering.<br/> Vite · Webpack · Rollup · esbuild · Rspack · Farm · Next.js · Nuxt · SvelteKit · Astro · Solid · Qwik · React Router 7 · TanStack Router.<br/> Tailwind <strong>v3</strong> &amp; <strong>v4</strong>. </p> <p align="center"> <a href="https://www.npmjs.com/package/tailwindcss-obfuscator"><img src="https://img.shields.io/npm/v/tailwindcss-obfuscator.svg?style=flat-square" alt="npm version"></a> <a href="https://www.npmjs.com/package/tailwindcss-obfuscator"><img src="https://img.shields.io/npm/dm/tailwindcss-obfuscator.svg?style=flat-square" alt="npm downloads"></a> <a href="https://github.com/josedacosta/tailwindcss-obfuscator/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/tailwindcss-obfuscator.svg?style=flat-square" alt="license"></a> <a href="https://josedacosta.github.io/tailwindcss-obfuscator/"><img src="https://img.shields.io/badge/docs-online-brightgreen?style=flat-square" alt="docs"></a> <a href="https://www.bestpractices.dev/projects/12705"><img src="https://www.bestpractices.dev/projects/12705/badge" alt="OpenSSF Best Practices"></a> <a href="https://scorecard.dev/viewer/?uri=github.com/josedacosta/tailwindcss-obfuscator"><img src="https://img.shields.io/ossf-scorecard/github.com/josedacosta/tailwindcss-obfuscator?style=flat-square&label=OpenSSF%20Scorecard" alt="OpenSSF Scorecard"></a> </p>

📖 Full documentation

👉 josedacosta.github.io/tailwindcss-obfuscator

Setup guides for every framework, the complete options reference, the patterns that obfuscate (and the ones that don't), the comparison with tailwindcss-mangle, and more.


Why

tailwindcss-obfuscator rewrites verbose Tailwind utility classes (bg-blue-500, flex) into short opaque identifiers (tw-a, tw-b) at build time. The shipped HTML / CSS / JS bundles get 30–60 % smaller on CSS-heavy pages and your design system becomes much harder to reverse-engineer. Source code stays readable.

Install

pnpm add -D tailwindcss-obfuscator
# or: npm install --save-dev tailwindcss-obfuscator
# or: yarn add --dev tailwindcss-obfuscator

You also need tailwindcss (v3 or v4) installed in the project.

Quick start — Vite

// vite.config.ts
import { defineConfig } from "vite";
import tailwindcss from "@tailwindcss/vite";
import tailwindCssObfuscator from "tailwindcss-obfuscator/vite";

export default defineConfig({
  plugins: [tailwindcss(), tailwindCssObfuscator()],
});

That's it. Run vite build and your bundle is obfuscated. vite dev is left untouched so the dev experience stays normal.

For Webpack / Rollup / esbuild / Next.js / Nuxt / SvelteKit / Astro / Solid / Qwik / React Router 7 / TanStack Router setups, see the full documentation.

Plugin entry points

Bundler / frameworkImport path
Vitetailwindcss-obfuscator/vite
Webpacktailwindcss-obfuscator/webpack
Rolluptailwindcss-obfuscator/rollup
esbuildtailwindcss-obfuscator/esbuild
Nuxt moduletailwindcss-obfuscator/nuxt
CLI binarytw-obfuscator (after install)
Internal pipelinetailwindcss-obfuscator/internals

Compatibility

The "Versions" column lists the design-intent range — the plugin core is bundler-agnostic and most modern versions of each tool work. The "Tested in CI" column lists the exact version exercised by an apps/test-* app on every release. If you need a guarantee for a specific version, open an issue and we'll add a test app.

DependencyVersionsTested in CI
Tailwind CSSv3.x · v4.xv3.4 + v4.1
Vitev4 → v8v8.x
Webpackv5v5.106 (standalone) + v5 in Next
Rollupv3 → v4v4.60
esbuild≥ 0.17≥ 0.28
Next.jsv13 → v16v16.2 (App Router + Turbopack)
Nuxtv3 · v4v4.4
SvelteKitv2v2.58 (Svelte 5.55, runes)
Sveltev4 · v5v5.55 (runes)
Astrov4 → v6v6.1
Vuev3.5+v3.5.14
Solidv1.9+v1.9.12
Qwikv1.xv1.19
React Routerv7 (ex-Remix)v7.14
TanStack Startv1.168+v1.168
Node.js≥ 1820 (CI) + 22 (CI)

Full live matrix with the test app file paths : docs/reference/compatibility.

FAQ…

Description from the npm listing.

  • tailwindcss
  • tailwind
  • tailwind-css
  • obfuscator
  • obfuscation
  • mangle
  • mangler
  • tailwindcss-mangle
  • tailwindcss-mangler
  • tailwind-mangle
  • tailwind-mangler
  • tailwindcss-mangle-alternative
  • class-mangler
  • class-name-mangler
  • css-class-mangler
  • tailwind-class-mangler
  • tailwind-class-shortener
  • tailwind-css-mangler
  • minify
  • css

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

tailwindcss-obfuscator weekly downloads on npm, last 90 days: 386 weekly downloads as of Dec 5, 2026, +157% over 90 days.tailwindcss-obfuscatorWeekly downloads on npm · Last 90 days386downloads / week+157% over 90 days0100200300400500600700Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
tailwindcss-obfuscator weekly downloads on npm, last 90 days: 386 weekly downloads as of Dec 5, 2026, +157% over 90 days.

7/30/90-day growth

tailwindcss-obfuscator weekly downloads growth on npm: -8.3% over 7 days, -5.9% over 30 days, +157% over 90 days.tailwindcss-obfuscatorWeekly downloads growth on npm386downloads / week now7-day growth-35 weekly downloads-8.3%30-day growth-24 weekly downloads-5.9%90-day growth+236 weekly downloads+157%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
tailwindcss-obfuscator weekly downloads growth on npm: -8.3% over 7 days, -5.9% over 30 days, +157% over 90 days.

Ranking history

tailwindcss-obfuscator npm ranking history: currently #2322 (by weekly downloads).tailwindcss-obfuscatornpm ranking · by weekly downloads · Last 90 days#2322current rank#600#800#1000#1200#1400#1600#1800#2000#2200#2400Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
tailwindcss-obfuscator npm ranking history: currently #2322 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 117, #2 (overall #2,322)
All npm: every listing in weekly downloads order

Listing placement

Webpack plugins349 listings · 18 pages · page 6, #8 (overall #108)
Webpack plugins: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (592)
Recent weekly downloads observations for tailwindcss-obfuscator
Date (UTC)Weekly downloadsChange vs. previous
386+21
365+1
364+11
353-1
354-27
381-9
390-31
421-28
449-7
456+5
451-86
537-23
560-76
636—

Similar npm Webpack plugins plugins

All 20 tailwindcss-obfuscator alternatives

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/tailwindcss-obfuscator. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.