Smart Deals - promotions, discount codes and sales

Gradients CSS Generator

Fast, accurate and free online gradients css generator tool running directly in your browser.

Secure (SSL)
Client-Side Processing
100% Free
Instructions
  • 1
    Enter data
    Enter content, paste text or load a file from disk.
  • 2
    Click the button
    The tool will immediately process your data in the browser.
  • 3
    Get the result
    Copy the finished text or save the file to your device.
function runTool() {
  return "Result ready in 0.1s";
}

Configurator

Punkty: 2
#4FACFE
Poz: 0%
Alpha: 100%
#00F2FE
Poz: 100%
Alpha: 100%
Live preview
Kod CSS Copied!
background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
###PHPBLADE_0###

Rate this tool:

Related tools

Other tools you may find useful

CSS Gradient Generator - linear and radial with stops, alpha and fallback

This tool creates professional CSS gradients from any number of color stops. You choose the linear or radial type, set the angle, position in percent, the opacity of each freeze frame and decide on the legacy mode with prefixes. You receive a ready-made background code with safe fallback and a real-time preview.

Key features: dynamically adding and removing stops, sorting by position, selecting color from the palette, alpha and position control in the range of 0-100, quick color presets, linear mode with angle 0-360 and radial with circle. The result includes a fallback to the first color and optional prefixes for older engines.

How the CSS Gradient Generator works

The engine builds the finalbackground valueaslinear-gradientorradial-gradient. Each stop is transformed to the formrgba(r, g, b, a) X%. Items are clamped to 0-100 and then sorted in ascending order, which prevents composition errors. In legacy mode, lines with the prefixes-webkit-, -moz- and -o-are added. The first color of the gradient goes to the line fallbackbackground: #HEXso that users of very old browsers will still see a consistent background.

Parameters and influence on the effect

Type and geometry

  • type- linear or radial.
  • angle- angle for the linear gradient in degrees. 0 is right, 90 is down, 180 is left, 270 is up, 45 and 135 give diagonal transitions.
  • radial- the generator creates a circle. Good for auras and glows under cards.

Alloys and colors

  • color- hexadecimal color normalized to 6-digit form.
  • a- opacity in percent. 0 is full transparency, 100 is full opacity.
  • pos- stop position in percentage of the gradient length.

Presets and quick color selection

In the preset bar you will find a set of frequently used brand and neutral colors. Click a color to assign it to the currently selected alloy. This speeds up work when prototyping hero sections, pricing cards and banners.

Configuration examples and resulting CSS

1. 90 degree linear gradient with three stops

/* Fallback to first color */
background: #2A7B9B;
/* Legacy prefixes optional */
background: -webkit-linear-gradient(90deg,
  rgba(42, 123, 155, 1) 0%,
  rgba(87, 199, 133, 1) 50%,
  rgba(237, 221, 83, 1) 100%);
background: -moz-linear-gradient(90deg,
  rgba(42, 123, 155, 1) 0%,
  rgba(87, 199, 133, 1) 50%,
  rgba(237, 221, 83, 1) 100%);
/* Modern line */
background: linear-gradient(90deg,
  rgba(42, 123, 155, 1) 0%,
  rgba(87, 199, 133, 1) 50%,
  rgba(237, 221, 83, 1) 100%);

2. Subtle radial for card background

background: #f8fafc;
background: radial-gradient(circle,
  rgba(99, 102, 241, 0.28) 0%,
  rgba(99, 102, 241, 0.12) 35%,
  rgba(99, 102, 241, 0) 70%);

3. Transparent gradient overlay in the hero section

.hero {
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.2) 35%, rgba(0,0,0,0) 70%),
    url('hero.webp');
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

Uses and Recommendations Matrix

Context Gradient Type Settings Tips
Hero full width linear angle 120-150, 2-3 feet Add 20-40 overlay for t

Fast online tools for work, study and files. They run in your browser - no installation or registration required.

Install Webp.pl Have the tools in your own pocket!