Export CSS
safe · secure · no server · works offline · fast
…or paste a file you copied in Finder, or just start typing at the cursor.
↓ scroll for about & FAQsafe · secure · no server · works offline · fast
…or paste a file you copied in Finder, or just start typing at the cursor.
↓ scroll for about & FAQChoose a format, its options, and the maximum size of the download.
It’s one lens on OmniViewer’s CSS Viewer, Formatter & Specificity Checker: drop a file and every tab is one click away. OmniViewer opens every file format, entirely in your browser — no upload, no server.
No. OmniViewer is a static page with no server-side processing: your .css file is read directly by your browser, and every tab — formatted, minify, selectors, colors and stats — runs locally in a Web Worker. The file never leaves your computer.
Specificity is a triple (a,b,c): a counts ID selectors, b counts classes, attribute selectors and pseudo-classes, and c counts type selectors and pseudo-elements. They are compared left to right, so one ID beats any number of classes. The universal selector and combinators count for nothing. The functional pseudo-classes are recursive: :is(), :not() and :has() take the highest specificity among their arguments, while :where() always contributes zero. The SELECTORS tab computes this for every selector the way a browser does and lets you sort by it.
Yes. The MINIFY tab works from the parsed rule tree, not a find-and-replace, so it can only emit valid rules. It removes comments (keeping a /*! license banner), collapses insignificant whitespace and tightens commas and combinators, but it deliberately preserves the load-bearing whitespace inside calc(), so the minified stylesheet behaves identically. It reports the exact bytes saved.
Best-effort. The .scss and .less extensions open in the CSS toolkit, and the formatter, colour extractor and stats degrade gracefully over the extra preprocessor syntax. It is a tokenizer, not a Sass/Less compiler, so it will not resolve variables, mixins or nesting into plain CSS — for that, run your preprocessor first and open the compiled output.
The raw and hex views are windowed — they read only the bytes needed to paint the screen — so they open files of effectively unlimited size. The formatted, minify, selectors, colors and stats tabs parse the document in memory, so on very large generated stylesheets they work on a bounded prefix and tell you when they do. In practice most stylesheets are small, so this rarely matters.