Guide

How to choose a background for your site.

A background is the fastest way to make a site look considered, or cheap. Here is how to pick the right one, keep your text readable, and ship it without slowing the page down.

Step 2 · the one rule

Keep the text readable.

The most common mistake is a beautiful background you cannot read text on. Three fixes, in order:

  • Put your text over the calmest part of the image. Most backgrounds have a quiet area and a busy one. Headlines go on the quiet one.
  • Add a subtle overlay. A gradient from transparent to roughly 40-60% black behind the text block lifts contrast without hiding the art. In CSS: background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.15)), url(bg.webp);
  • Check contrast. Body text wants about a 4.5:1 ratio against whatever sits behind it. The background sets the mood; the text still has to win.
Hard to read Build it inevitable White text straight onto a bright, busy area, it gets lost.
Readable Build it inevitable Same image, with a dark gradient overlay behind the text.

Same background, both times. The only difference is the overlay. That is the whole trick.

Step 3 · ship it fast

Right size, small file.

A gorgeous background that adds two seconds to load costs you more conversions than it gains. Three habits:

  • Serve the right size per screen. A 4K desktop hero (3840x2160) is wrong on a phone, it is huge and slow. Hand mobile a vertical 9:16 or a 1280-wide version and let the browser pick with srcset.
  • Compress for web. Export the one you use as WebP or AVIF, it cuts the file 60-80% versus JPG at the same quality, and keeps your Core Web Vitals healthy.
  • Lazy-load below the fold. Only the hero needs to load up front. Everything lower can wait.

The drop-in for a fast, responsive hero background:

<img src="bg-1280.webp"
     srcset="bg-768.webp 768w, bg-1280.webp 1280w, bg-2400.webp 2400w"
     sizes="100vw" alt="" loading="eager" />

Every Designer Vault pack ships in four ratios, so you always have the right shape for desktop, mobile, square and portrait. Drop in the matching size, compress it for the web, and you are done.

Desktop · 16:9 · 4K
Mobile · 9:16

One design, the right crop for each screen. No stretching, no guessing.

Avoid these

Three quiet mistakes.

  • Stretching the wrong ratio. A desktop image squashed onto a phone looks cheap instantly. Use the size made for the screen.
  • A background that fights the UI. If your buttons and copy are hard to find, the background is too busy. Calmer usually wins.
  • The same flat default gradient. The free CSS gradient everyone uses reads as a placeholder. Texture, depth and one cohesive direction are what make a site look intentional.
Step 4 · the directions

Browse by style.

Once you know the job and the rules, pick a direction. Each is one cohesive style, in 4K, with every ratio and a palette card.

The free 4K background shown as a desktop website background
The same free background on a phone
Free sample

Try one, on the house. Free.

This exact 4K background, on your desktop and phone, yours to keep. A real taste of the library at full quality. Plus first word when new packs land, no spam, leave whenever.

Get your free background →
Instant download · For personal use · No card needed
Questions

Good to know.

What size should a website background be?

Use 4K (3840x2160) for a desktop hero, and a smaller vertical image (9:16, around 1080x1920) for mobile. Serve the right one per screen with srcset so phones never download the full 4K file.

How do I keep text readable over a background?

Place text over the calmest area, add a subtle dark overlay (a gradient from transparent to about 40-60% black) behind the text, and aim for a 4.5:1 contrast ratio for body copy.

What file format is best for a web background?

WebP or AVIF for the web, they cut file size 60-80% versus JPG at the same quality. Keep a 4K JPG for print, but serve a compressed WebP on the site.

Why does my background look stretched or blurry?

You are using the wrong ratio for the screen, or a low-resolution image scaled up. Use the matching aspect ratio and start from a high-resolution source.