Does the gradient CSS work in all browsers?
Yes. The generated linear-gradient CSS is supported by all modern browsers, including mobile browsers.
Build beautiful CSS gradients visually and copy the ready-to-use CSS code. Free online gradient generator for buttons, banners and backgrounds.
Gradients add depth and polish to website backgrounds, buttons, banners and hero sections, but writing gradient CSS by hand with the right angles and colour stops is fiddly. DrToolLab's CSS gradient generator lets you pick your colours and direction, see a live preview instantly and copy the finished background CSS with one click. Use it to create a background that matches your brand colours, a subtle highlight for a call-to-action button, or a bold banner for a sale page. The generated code is standard CSS that works in every modern browser and can be pasted straight into your stylesheet, Tailwind arbitrary values, Shopify or WordPress theme custom CSS, or a page builder that accepts custom CSS. Everything runs in your browser, with no signup and no limits. Pair it with the colour picker to find exact brand colours and the box shadow generator to finish the look.
Enter your details or choose your settings.
The Gradient Generator updates the result as you change them.
Copy, download or save the result.
Private by design. Everything is generated in your browser. What you enter is never sent to a server or stored.
Yes. The generated linear-gradient CSS is supported by all modern browsers, including mobile browsers.
Paste it into the background property of the element in your stylesheet, theme custom CSS or page builder.
Yes. Enter any colours you like; use the colour picker to find exact HEX codes.
Yes, completely free with no signup or limits.