‹ All tools
Everyday

🌈 Gradient Generator

Build a CSS linear gradient and copy the code

Loading interactive gradient generator…

About the Gradient Generator

Build a custom linear CSS gradient with two colors and an adjustable angle, then copy the ready-to-paste CSS into your stylesheet.

Useful for hero backgrounds, buttons, overlays and anywhere a flat color feels a bit flat.

How it works

  1. Pick a start and end color.
  2. Set the angle.
  3. Copy the generated CSS into your project.

What you'll learn

  • How CSS linear-gradient syntax works.
  • How angle changes the visual flow of a gradient.

FAQs

Will the CSS work in all browsers?
Linear gradients are supported in every modern browser without prefixes.

More everyday tools

Or browse all 50+ MilkBox tools.