Open CSS files online
Drop a CSS file to preview it instantly in your browser. Free and private: your file is never uploaded, and no account is needed.
What is a CSS file?
A CSS file contains rules that control how web pages look: colours, fonts, spacing, layout and animation.
Every website uses CSS, from small hand-written files to large generated bundles. Minified files remove spaces to save bytes and are hard to read.
| Full name | Cascading Style Sheets |
|---|---|
| File extension | .css |
| MIME type | text/css |
| Developed by | W3C (proposed by Håkon Wium Lie) |
| Introduced | 1996 |
How to open a CSS file online
- Drop the file. Drag your .css file onto the panel at the top of this page, or click it to pick the file from your device.
- See it instantly. Your browser reads the file locally and shows the preview in a second or two.
- View full screen or download. Use the full screen button for a distraction-free view, or download a copy. Close the page when you are finished and nothing is kept.
How Drop and Open displays CSS files
Drop and Open shows CSS as plain text in a monospace block with the original formatting. It is not applied to the page you are looking at.
What CSS files are used for
- Reviewing site styles
- Debugging layout issues
- Checking third-party themes
- Learning from public examples
Tips for working with CSS files
- Format minified CSS in your editor before reading it.
- Search for custom properties that start with -- to find design tokens.
- Check for @import rules that load external files.
Is it private to open a CSS file here?
Yes. Drop and Open runs entirely in your browser. When you choose a file, the browser reads it into local memory and displays it. There is no upload, no account, and no server-side copy. You can check this by opening your browser's developer tools, watching the Network tab and dropping a file. Learn more in our guide to client-side and server-side viewers.