GameParticles

Gradient Generator

ColorsNew

Create linear or radial gradients with up to 5 color stops. Control direction with preset angles or a custom value. Export as CSS background property, Tailwind classes, or SVG markup.

Click to copy CSS
Type
Direction
°
Color Stops (2/5)
%
%
background: linear-gradient(90deg, #7c3aed 0%, #22d3ee 100%);

Works great for

🎨

Hero section backgrounds

Design smooth linear or radial CSS gradients for website hero sections and landing pages. The live preview and one-click CSS copy let you iterate on color combinations and get straight to implementation.

⚛️

React and Tailwind projects

Generate CSS gradient code and matching Tailwind utility classes in a single tool. Copy the from/via/to class string directly into your Tailwind component without writing any custom CSS.

🖌️

Brand and identity design

Explore gradient palettes for brand backgrounds, logo fills, and marketing assets. Adjust color stop positions precisely with the slider or numeric input to match exact brand color percentages.

🔘

Button and UI component styling

Create gradient fills for CTA buttons, badges, and cards that stand out against flat backgrounds. Export SVG gradient definitions to use inside icon masks or as reusable design tokens.

✨

Gradient text effects

Generate the background CSS for gradient text using background-clip and -webkit-text-fill-color. The CSS output tab gives you the exact background property value ready to pair with those rules.

📱

Social media graphic backgrounds

Create vibrant gradient backgrounds for Instagram story templates, Twitter/X header images, and Open Graph cards. Radial gradients add depth to flat-looking social media graphics quickly.

css gradient generatorlinear gradientradial gradientgradient css codetailwind gradientgradient color stopsbackground gradientgradient text csssvg gradientgradient maker

Frequently asked questions

How do I create a CSS gradient background?

Add color stops, choose linear or radial, and set a direction using a preset angle or a custom value. The live preview updates immediately and the CSS background code is generated for you to copy.

Can I export the gradient as Tailwind classes or SVG?

Yes. Besides the raw CSS background property, the tool can export the same gradient as Tailwind utility classes or as SVG markup for use in vector graphics.

Is there a limit to how many color stops a gradient can have?

You can add up to 5 color stops per gradient, each with its own position and color, which covers the vast majority of linear and radial gradient designs.

What is the difference between a linear and radial gradient?

A linear gradient transitions colors along a straight line at a set angle, while a radial gradient radiates colors outward from a center point. The tool lets you switch between both types with the same color stops.

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵