Box Shadow Generator
Tune offset, blur, spread and color, then copy a CSS box-shadow value.
Build linear, radial or conic CSS gradients, or gradient text, and copy the CSS or HTML.
A CSS gradient generator builds linear, radial or conic gradients for a background or for text, and copies the CSS or an HTML snippet.
This tool runs in your browser. Inputs, files and generated values stay on this device. Favorites and recently used tools, if you use them, store only tool names in local storage — never passwords, documents or QR contents. See the privacy policy.
Build a linear, radial or conic CSS gradient from color stops, for a background or for text, and copy the CSS or a ready HTML snippet. Use it when a section, button or heading needs a gradient and you want the code written for you. You need two to eight stops, and positions round to whole percents.
background: linear-gradient(90deg, #336699 0%, #ffffff 100%);
background: radial-gradient(circle, #336699 0%, #ffffff 100%);
background: conic-gradient(from 0deg, #ff6b6b 0%, #feca57 25%, #48dbfb 50%, #ff9ff3 75%, #ff6b6b 100%);
Stops are sorted by position and written as valid CSS color stops. Gradient text uses background-clip: text inside an @supports rule, with the first stop as a solid color fallback, so older browsers still show readable text. Text you type is escaped in the HTML snippet and is not added to share links.
Two to eight color stops are supported. Positions are rounded to whole percents from 0 to 100, and a color the parser cannot read stops the CSS until it is fixed. Radial gradients have no angle in CSS, so they use a shape and center instead. Repeating gradients, layered gradients, and a gradient you paste in are not generated.
See the disclaimer for what these tools do not cover.
Tune offset, blur, spread and color, then copy a CSS box-shadow value.
Minify CSS in your browser while preserving strings, URLs, comments and important spacing.
Pick a color with the browser color input and copy HEX, RGB or HSL values.
Convert 3-digit, 6-digit and 8-digit hex colors to RGB, RGBA and HSL in your browser.
Check WCAG contrast between foreground and background colors, with pass/fail for AA and AAA.
Pretty-print JSON, minify it, or check that it parses in the page. Comments, trailing commas, and single quotes fail. It does not turn the result into CSV.
Guide
Split a hex color into red, green, and blue pairs and convert each pair from base 16 to a number from 0 to 255.
Read guideGuide
Compare two solid colors and read the WCAG 2 ratio, including AA and AAA for normal and large text.
Read guideGuide
Build a linear, radial or conic CSS gradient from at least two color stops and copy the background or gradient text CSS.
Read guideGuide
Set one offset, blur, spread, color, and opacity, then copy a single box-shadow declaration.
Read guidePreview
90deg