Skip to content

Background generator

Make a background online from a gradient, soft mesh blobs or a simple pattern, and add a little grain if you like. Copy the CSS for your website, or download a PNG for slides, posts and wallpapers.

Free, no sign-up. Runs in your browser. Nothing you type or upload is sent to us or stored.

Want a page that already looks finished?

A free Liite page comes with 15 themes, from soft sunset tones to plain black and white, plus gradient and pattern wallpapers of your own. Pick one, add your links, and your page is live at liite.co/yourname.

Make your free page

How to use it

  1. Pick a type: linear or radial gradient, mesh, or pattern.
  2. Set the colours and the angle, position or tile size, or press Randomise for a starting point.
  3. Copy the CSS or the Tailwind class, or choose a size and download a PNG.

Four kinds of background

A linear gradient blends two to four colours along a line at any angle. A radial gradient blends them outwards from a point, as a circle or an ellipse. A mesh background layers several soft blobs of colour over a base colour, which gives the loose, painterly look you see on many app and product sites. Patterns repeat a small tile: dots, a grid, diagonal stripes or a checkerboard.

Grain adds fine noise on top. It hides the banding you sometimes get in smooth gradients and makes flat colour feel less digital.

A CSS gradient generator

Pick linear or radial and the tool writes the gradient for you, for example background: linear-gradient(135deg, #f97316 0%, #db2777 100%). Set two to four colour stops, move each one along the line, and change the angle. A radial gradient also takes a centre point and a shape, circle or ellipse.

Want a plain background colour instead? Set every stop to the same colour and you get a solid fill, written as CSS and downloadable as a PNG.

How to make a gradient background in CSS

Set the type and colours above, then copy the CSS: it's one background declaration, so a gradient background colour in CSS is a single line on the element you want to fill. To fill the whole page, put it on the body and give the body min-height: 100vh, so short pages don't stop the gradient halfway.

To put a gradient over an image, list both layers in one background declaration, separated by a comma. MDN explains that the first layer you write sits on top, so the gradient goes first and url(photo.jpg) goes last, for example background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0)), url(photo.jpg) center / cover. To fade an image into the page, end the gradient in your page colour instead, such as linear-gradient(to bottom, rgba(255,255,255,0), #fff).

Using the CSS

The CSS is a single background declaration, so it drops into any stylesheet or a style attribute. It works in every current browser and needs no image files: the grain is written as a tiny inline SVG. For Tailwind, the class is an arbitrary property, which works for gradients, layered blobs and patterns alike; paste it into your class list as it is.

Pattern sizes are in pixels, so a 24px dot grid looks the same on a small card and a full page. The preview here shows the background at its real pixel size, scaled down to fit.

Backgrounds for a website

For a website, the CSS is usually better than an image: it's a few hundred bytes, stays sharp at any screen size and needs no extra request. Put it on the body or on one section. Keep text readable on top by choosing colours that are close in lightness, or by adding a solid panel behind the text.

Downloading a PNG

Choose a social size or enter your own width and height, up to 4096 pixels a side. The PNG is drawn in your browser from the same settings, so it matches the CSS closely; the grain is random each time, so no two downloads are exactly the same.

Questions

Is it free to use the backgrounds?

Yes. The CSS and the PNGs are yours to use on websites, slides, posts or anything else, with no credit needed.

Is this an AI background generator?

No. It draws backgrounds from the colours and settings you choose, so the same settings always give the same result (apart from the random grain). It's quick for gradients, mesh and patterns; for a photo-style scene, use an AI image tool instead.

Can I make a linear gradient in CSS with it?

Yes. Choose Linear, set the angle and two to four colours, and copy the CSS. It's a standard linear-gradient() that works in every current browser.

Is there a background generator app?

You don't need one. This background maker runs online in your phone's or computer's browser, with nothing to install, and the PNG downloads like any other file.

Does the CSS work without Tailwind?

Yes. The CSS output is plain CSS. The Tailwind class is a second option for projects that use Tailwind.

Why does my gradient show stripes of colour?

That's banding: there aren't enough shades between two colours across a large area. Add a little grain, or pick colours that are closer together.

Can I use a background on my Liite page?

Yes. In the editor's Design panel, pick a gradient or pattern wallpaper on any plan, or upload the PNG as a photo wallpaper on Pro.

Is anything uploaded?

No. The preview, the CSS and the PNG are all made in your browser.