WordPress themes and plugins often ship with unminified CSS, slowing your site's load time and dragging down PageSpeed Insights scores.
Loading Minify CSS…
Minifies WordPress theme style.css files
Works on plugin stylesheets too
No WordPress plugin installation required
Handles WordPress-specific comments like Theme Name headers
Drop the Minify CSS into any page — blog post, product docs, intranet, school portal — with a single line of HTML. Your visitors get the full tool, processed entirely in their browser. No backend, no uploads, no signup.
Embed code
<iframe
src="https://www.fixtools.io/css-tool/minify-css?embed=1"
width="100%"
height="780"
frameborder="0"
style="border:0;border-radius:16px;max-width:900px;"
title="Minify CSS by FixTools"
loading="lazy"
allow="clipboard-write"
></iframe>Attribution-friendly: a small "Powered by FixTools" link appears in the embed footer.
WordPress sites commonly load five to fifteen separate CSS files on a single page: the active theme's style.css, a child theme stylesheet, stylesheets enqueued by WooCommerce, a contact form plugin, a slider, a page builder, and any other active plugins that register their own styles. Each of these files is frequently unminified and ranges from a few kilobytes to over 100KB. The cumulative weight of unminified WordPress CSS on a typical small business site regularly exceeds 300KB, contributing to PageSpeed Insights performance scores in the 50 to 70 range and failing Core Web Vitals thresholds on mobile. Minifying each stylesheet individually can cut that total by 30 to 80KB and push scores meaningfully higher without adding a caching plugin, configuring a CDN, or touching the server.
The WordPress-specific consideration when minifying CSS is the theme header comment. WordPress reads the block comment at the very top of style.css to identify the theme name, author, version, description, and other metadata required for the theme to appear in the WordPress admin. A standard minifier removes all CSS comments, including this required header block. After minifying the stylesheet body, you must manually paste the original theme header comment above the minified output before saving the file to your server. If this header is absent, WordPress will not recognise the theme as valid and will refuse to activate it. Plugin stylesheets do not have this requirement and can be minified and replaced without any manual comment handling.
For WordPress sites where frequent theme updates would overwrite manually minified stylesheets, the most sustainable approach is to create a child theme. The child theme's style.css contains only the required WordPress theme header comment that declares the parent theme, plus any CSS customisations you have written. You minify only the child theme CSS, and a parent theme update will never overwrite it. This child theme workflow gives you the full performance benefit of minification while completely protecting your style customisations from being lost. It also means the parent theme can be kept up to date without any risk to your performance optimisations.
WordPress sites that sit behind a CDN such as Cloudflare or BunnyCDN benefit twice from CSS minification: once at the WordPress origin where the smaller file is served to the CDN, and again at every edge node where the file is cached and replicated globally. Most CDN configurations apply gzip or Brotli compression on top of the already minified stylesheet, so the bytes transferred to each visitor are even smaller than the file you uploaded. The interaction between WordPress and a CDN does add one operational consideration: when you upload a new minified stylesheet after editing the source, purge the CDN cache for that specific file path or use a versioned filename so the CDN immediately starts serving the new version. Without a purge, the CDN may continue serving the previous cached version for hours after your upload.
Caching plugin compatibility is the single biggest variable in any WordPress CSS minification workflow because the major caching plugins each take a different approach to combining and serving stylesheets. WP Rocket includes a Minify CSS option in its File Optimisation panel that minifies and optionally combines all enqueued stylesheets on the fly; if you have already manually minified a stylesheet, leave the WP Rocket option enabled for the remaining unminified plugin stylesheets because a second pass on an already-minified file is harmless. W3 Total Cache exposes a similar Minify CSS setting and additionally lets you pick exactly which stylesheets to include in its minification pass, which is useful when one plugin's stylesheet breaks under combined minification and needs to be excluded. The WordPress block editor stylesheets enqueued under wp-includes and wp-content/themes/themename/style-editor.css are regenerated by core on every WordPress update and should generally be left to the caching plugin rather than minified manually; the maintenance cost of re-minifying after each core update outweighs the saving for files that are typically already small.
Paste your WordPress stylesheet (including the theme header comment if present) and click Minify. Copy the output to replace the stylesheet in your theme or child theme.
Step-by-step guide to minify css for wordpress:
Locate your stylesheet
In your WordPress dashboard or via an FTP client, navigate to the CSS file you want to minify. For theme stylesheets, the path is typically /wp-content/themes/your-theme-name/style.css. For plugin stylesheets, look inside /wp-content/plugins/plugin-name/ for .css files. Download or open the file and copy all its contents.
Paste and minify
Paste the full stylesheet contents into the FixTools CSS Minifier input panel and click Minify. The tool processes the entire stylesheet, including the WordPress theme header comment, and produces a single-line compressed output that contains all the CSS rules from the original.
Re-add the theme header
If you are minifying a theme's style.css, copy the original WordPress theme header comment block from before you minified. Paste it above the first line of the minified output. The header comment must be the very first content in the file before the minified CSS for WordPress to recognise the theme.
Upload the minified file
Upload the final file (header comment plus minified CSS) to your server via FTP, SFTP, or the WordPress theme file editor. Clear any caching plugin caches after uploading, then test the site in a browser to confirm all styles are rendering correctly on every page type.
Common situations where this approach makes a real difference:
A WordPress site owner minifies their child theme's style.css in FixTools, carefully pastes the WordPress theme header comment above the minified output before saving, and pushes their PageSpeed mobile score from 62 to 74 without installing a new plugin.
A WooCommerce store manager manually minifies a contact form plugin's 85KB stylesheet using FixTools after deciding the site already has enough active plugins and does not need another optimisation layer.
A WordPress consultant minifies a client's unoptimised theme stylesheet using FixTools during an initial performance audit to demonstrate the quick-win file size saving before proposing a comprehensive plugin-based solution for ongoing optimisation.
Use this when you want to manually minify a WordPress theme's style.css or a plugin's stylesheet without installing yet another WordPress optimisation plugin.
Get better results with these expert suggestions:
Test on a staging site before replacing the live stylesheet
WordPress theme and plugin CSS is deeply interconnected across components. Before replacing any production stylesheet with a minified version, apply the change to a staging copy of the site and test every page type: home page, single posts, archive pages, WooCommerce shop and product pages, and any custom post types. A broken stylesheet on a WordPress production site can make the entire front end unusable for all visitors.
Check plugin update impact on minified stylesheets
When a plugin receives an update, its registered stylesheet may change significantly. After any plugin update, download the new stylesheet from the plugin directory, compare it to your minified version, and re-minify if the content has changed. Failing to re-minify after a plugin update that introduced new CSS rules means visitors see the updated plugin functionality but without the updated styles applying correctly.
Use FTP or SFTP rather than the theme file editor
The WordPress theme file editor in the admin dashboard can introduce character encoding issues or silently truncate content when pasting large amounts of minified CSS. Use FTP or SFTP to upload the minified file directly from your local machine to the server, which guarantees the byte content of the file is preserved exactly as generated by the minifier.
Log which plugin stylesheets you have manually minified
Keep a simple text file in your project notes that records each plugin name, the path to its stylesheet, and the date you last minified it. This log makes it straightforward to check which plugin stylesheets need re-minifying after a plugin update and prevents unminified CSS from silently re-entering your production site as plugins update.
Use a child theme to avoid update overwriting
If you minify a parent theme's style.css directly, a theme update will overwrite your changes. Always create a child theme and minify the child theme's CSS to preserve your changes.
Preserve the WordPress theme header comment
The comment block at the top of style.css (/* Theme Name: ... */) is required by WordPress to recognise the theme. Make sure this comment is re-added above the minified CSS, as the minifier will remove it.
Compare against WP Rocket or Autoptimize output
If you already use a caching or optimisation plugin, check whether it is already minifying CSS. Avoid double-minifying, it wastes effort and can occasionally produce unexpected output.
More use-case guides for the same tool:
Open the full Minify CSS — free, no account needed, works on any device.
Open Minify CSS →Free · No account needed · Works on any device