Skip to content
Settings → CSS, HTML, ReactDeveloper tools

CSS Loader & Spinner Generator

Make a CSS loader or spinner from 16 designs with one HTML element. Set size, color and speed, and copy CSS, HTML or React code.

Did this tool work for you?

Used CSS Loader & Spinner Generator? Share how it went to help others.

About this tool

About CSS Loader & Spinner Generator

CSS Loader and Spinner Generator gives you a loading sign made of CSS alone, with no picture and no JavaScript. Each of the 16 designs needs only one empty element in your page. There are round ones, such as ring, two arcs, comet and double ring. There are dots that jump or fade, a pulse, a ripple and moving bars. Three designs are bars in the usual sense: one that fills, one with a light that slides across and one with moving stripes. A turning square, a clock, a skeleton line for content that is still on its way, and the word Loading complete the set. You set the size in pixels, the time of one round, the thickness and two colors, and you can give the preview the color of your own page to see whether the loader is easy to see. The code changes as you move the sliders. It comes in three parts: the CSS, the HTML element and a small React component. The element has the role status and a label, so a screen reader can tell its user that something is loading. A spinner without this is silent for people who cannot see it. For people who ask their system for less motion, a short rule slows the loader to 4 seconds a round. It is slowed down and not stopped, because a spinner that does not move looks as if the page has crashed. Since nothing has to be downloaded, the loader is there at once, which is exactly when it is needed. It stays sharp at every size, weighs well under one kilobyte compressed, and takes its colors from your settings. Please remember that a loader is a promise. Show it only when people have to wait for more than about a second, and if you know how far the work has come, show a real progress bar.

CSS Loader & Spinner Generator tool

When to show a loader

Tell people that something is happening

Sending a form

A small ring inside the button.

ExampleRing with 20 px and thickness 3.

Content on its way

A grey line where text will be.

ExampleChoose Skeleton.

Working on a file

A larger loader in the middle.

ExampleComet with 72 px.

Live search

Three dots beside the field.

ExampleChoose Three dots with 32 px.

Opening an app

A calm first screen.

ExamplePulse in the color of your brand.

React projects

A ready component.

ExampleOpen the React tab.

Loader tips

Waiting made easier

Wait before showing it

Show it after about 300 milliseconds, so quick answers do not flicker.

Enough contrast

A pale grey ring on white is easily missed.

Open Contrast Checker

Inside a button

Keep the width of the button, or the page jumps.

Always end it

Remove the loader after an error too, and say what went wrong.

Skeleton for content

A skeleton feels quicker than a spinner when you know the layout.

Other movements

Make your own keyframes.

Open Animation Generator
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed CSS Loader & Spinner Generator and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 25 November 2026

Answers and guidanceFrequently Asked Questions
How do I add the loader?
Copy the CSS into your stylesheet and the HTML element to the place where it should appear.
Can I use more than one?
Yes, but rename the class and the keyframes of the second, because both use the same names.
How do I center it?
Put it into an element with display grid and place-items center.
Does it work in all browsers?
In all current ones. Designs with a mask also contain the older webkit line.
Why does it not stop for less motion?
A spinner that stands still looks broken. It turns slowly, one round in 4 seconds.
What is the role status for?
Screen readers announce the label Loading when the element appears.
Is it better than a GIF?
It is smaller, sharp at every size, has no white edges and takes any color.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.