Web Dev
CSS Minifier
Minify or beautify CSS code.
How to use it
- Open Devly from the wrench in your menu bar, or press ⌃⌥⌘D. Press ⌘P, type CSS Minifier and press Return.
- Choose Minify or Beautify at the top.
- Paste or type your text into Input.
- Adjust the Options on the right if you need to. The defaults are listed below.
- Press Minify, or ⌘↵.
- To go the other way, press Swap or ⌘S. The output moves into the input.
- Use Copy or ⇧⌘C to copy the result. ⌘L clears everything.
Options
| Option | Values | Default |
|---|---|---|
| Indent SpacesIndentation for beautify mode | 1–8 | 2 |
| Remove commentsStrip CSS comments | On or off | On |
| Compress colorsShorten hex colors (e.g., #ffffff → #fff) | On or off | On |
Example
Real output from Devly, with the default options.
Input
.button {
color: #ffffff;
background: #0a84ff;
border-radius: 980px;
padding: 12px 22px;
}
.button:hover {
background: #0077ed;
}.button { color:#fff;background:#0a84ff;border-radius:980px;padding:12px 22px}.button:hover { background:#0077ed}From Terminal
With the free command-line tool installed:
Terminal
devly css --path input.txt # or pipe text in pbpaste | devly css
Quick Switch also finds it by: css, minify, beautify, compress, style, stylesheet.
More Web Dev tools
Color ConverterConvert colors between HEX, RGB, HSL, and HSV formatsJS MinifierMinify or beautify JavaScript codeHTML MinifierMinify or beautify HTML codeMarkdown PreviewPreview Markdown and convert to HTMLLorem IpsumGenerate placeholder text for designsData URIConvert text or data to Data URI format