CSS & Design Tools
Front-end work is full of small conversions and calculations. A designer hands you a HEX color and your CSS uses HSL, a mockup shows a gradient you need to reproduce, or a stylesheet has grown to hundreds of kilobytes and most of it never matches anything.
The color converter translates between HEX, RGB and HSL with a live preview, so you can adjust lightness or alpha and copy the result in the syntax you need. The gradient generator lets you add color stops, set the angle and copy the CSS. The PurgeCSS tool compares your CSS against your HTML and strips every selector that never matches. Run it first when page weight is the problem, because unused rules are often the largest thing you can remove.
The box shadow, border radius, flexbox and grid generators give you controls and a live preview for properties that are tedious to write by hand, and the PX to REM converter handles the unit math against your root font size. Every tool here runs in your browser and produces plain CSS you can paste into any project, with or without a framework.
-
Color Converter
Convert colors between HEX, RGB and HSL, with a live swatch.
-
CSS Gradient Generator
Build linear and radial CSS gradients with a live preview.
-
Purge CSS
Strip CSS rules that match nothing in your HTML.
-
CSS Box Shadow Generator
Stack layered box shadows with a live preview and copy the CSS.
-
CSS Border Radius Generator
Build rounded corners and elliptical blob shapes, then copy the CSS.
-
CSS Flexbox Generator
See each flexbox property on real boxes and copy the CSS.
-
CSS Grid Generator
Build CSS grid layouts from presets and copy the CSS.
-
PX to REM Converter
Convert px to rem, em and pt, or a whole stylesheet.
Which tool for which job
-
Convert a designer's HEX color to HSL or RGB
Color Converter. Adjust lightness or alpha against the live swatch and copy the value in the syntax your CSS uses.
-
Recreate a gradient from a mockup
CSS Gradient Generator. Add color stops, set the angle or switch to radial, then copy the CSS.
-
Cut unused rules from a theme or framework stylesheet
Purge CSS. Paste the CSS and the HTML that uses it. Classes that JavaScript adds later must appear in that HTML, or their rules will be removed.
-
Give a card a soft, layered shadow
CSS Box Shadow Generator. Two or three stacked shadows with different blur usually look more natural than one large shadow.
-
Round corners or draw a blob shape
CSS Border Radius Generator. Set each corner on its own, including the elliptical values after the slash that produce blob shapes.
-
Center something or space items in a row
CSS Flexbox Generator. Change justify-content, align-items and gap on real boxes and watch what each one does.
-
Lay out a page in rows and columns
CSS Grid Generator. Start from a preset, adjust the tracks, then copy grid-template-columns and the rest.
-
Turn pixel values from a design into rem
PX to REM Converter. Set your root font size, then convert a single value or a whole stylesheet.