SEOlust logo SEOlust
CSS & Design Generators

CSS Loader & Spinner Generator

Create pure-CSS loading spinners and animations — spinner, dual-ring, pulse, and dots styles with adjustable size, speed, and color. Copy the CSS. Free.

All tools

💡 How to use

  • Pick a loader style, then adjust size, speed, and color.
  • Copy the CSS — it includes the class and its @keyframes.
  • Add <div class="loader"></div> to your HTML to use it.

Free CSS Loader & Spinner Generator

Create pure-CSS loading spinners and animations, then copy the code in one click. Choose from spinner, dual-ring, pulse, and bouncing-dots styles, adjust size, speed, and color with a live preview, and paste ready-to-use CSS — including the keyframes — into your project. Free and image-free.

What is a CSS loader?

A CSS loader is a loading indicator built entirely with CSS animations — no GIFs, SVGs, or JavaScript required. Because it is pure CSS, it stays sharp at any size, weighs almost nothing, and animates smoothly on the GPU. Loaders reassure users that something is happening during page loads, form submissions, and data fetches, which reduces perceived wait time and bounce.

Loader styles you can generate

This tool includes several popular animation styles:

  • Spinner — the classic rotating ring, the most recognisable loader.
  • Dual ring — two spinning arcs for a lighter, modern look.
  • Pulse — a single dot that scales and fades in and out.
  • Bouncing dots — three dots that animate in sequence.

How to use the loader generator

Building a loader takes seconds:

  • Pick a loader style.
  • Adjust the size, animation speed, and color.
  • Watch the live preview on a dark stage.
  • Copy the CSS — it includes the class and its @keyframes — and add the matching HTML element.

How to add the loader to your page

After copying the CSS into your stylesheet, add a simple element to your HTML. For most styles that is a single element with the loader class, for example a div with class 'loader'. The bouncing-dots style uses three child spans inside the loader element. The generated code shows exactly what markup each style expects, so you can paste and go.

Why pure-CSS loaders are better than GIFs

Animated GIF spinners are heavier, limited to a fixed size, and often look blurry on high-DPI screens. CSS loaders download as a few lines of text, scale to any dimension without losing quality, let you change the color to match your brand instantly, and animate more smoothly. They also avoid an extra network request, which is a small but real performance win.

Pro tip

Keep loader animations quick and calm — a spin that takes around one second feels responsive without being distracting. Match the loader color to your brand accent, and for very short waits consider a subtle skeleton screen instead of a spinner. Pair this with our CSS Gradient Generator and Box-Shadow Generator to style the surrounding UI.

FAQ

Is this CSS Loader Generator free?
Yes. It is completely free, runs in your browser, and requires no account or sign-up.
How do I add a CSS loading spinner to my website?
Copy the generated CSS into your stylesheet, then add the matching HTML element (usually a div with the loader class). The generator shows the exact markup each style needs.
Do these loaders need JavaScript?
No. Every loader here is pure CSS using keyframe animations, so they work without any JavaScript. You only need JS if you want to show or hide the loader dynamically.
Can I change the loader's color and size?
Yes. Use the controls to set any color, size, and animation speed. The values are written straight into the CSS you copy.
Are CSS loaders better than animated GIFs?
Usually, yes. CSS loaders are lighter, stay sharp at any size, are easy to recolor, animate more smoothly, and avoid an extra image request.
How do I center a loader on the page?
Wrap it in a flex container with justify-content: center and align-items: center, or use a fixed overlay. Our Flexbox Generator can create the centering CSS for you.
Do CSS animations work in all browsers?
Yes. CSS keyframe animations are supported in every modern browser, including all current versions of Chrome, Edge, Firefox, and Safari.

Related tools

Pro tip: pair this tool with CSS Box-Shadow Generator and CSS Gradient Generator for a faster SEO workflow.