.css
🌐 WebText-based

.css File — Cascading Style Sheets

text/css

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

CSS

Drop a .css file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/css

Quick Facts

Extension.css
Full NameCascading Style Sheets
MIME Typetext/css
CategoryWeb
TypeText-based (human-readable)
Typical Size1 KB – 500 KB
First Appeared1996

What Is a .css File?

CSS (Cascading Style Sheets) is the style sheet language used to describe the presentation of HTML and XML documents, controlling layout, colors, fonts, spacing, animations, and responsive design. Created by Håkon Wium Lie and Bert Bos in 1996, CSS separates content (HTML) from presentation, enabling consistent styling across multiple pages and easier maintenance. CSS uses selectors to target HTML elements and applies declarations of property-value pairs. Modern CSS (CSS3+) supports flexbox and grid layout systems, custom properties (variables), media queries for responsive design, animations and transitions, transforms, filters, blend modes, shapes, and container queries. CSS has evolved from simple text styling to a powerful layout and animation system that can create complex visual effects without JavaScript. The cascade, specificity, and inheritance rules determine how conflicting styles are resolved. CSS preprocessors (Sass, Less) and utility-first frameworks (Tailwind CSS) have extended CSS workflows, while CSS-in-JS solutions integrate styling with component architectures. CSS Houdini provides low-level APIs for extending CSS capabilities programmatically.

How to Open .css Files

VS Code
WebStorm
Sublime Text
any text editor
Chrome DevTools

Related File Extensions

More Web File Extensions

Other web formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.