CSS Loader Generator
Generate pure-CSS loading spinners for free — spinner rings, dual rings, bouncing dots, equaliser bars, pulses and progress bars. Set the colour, size and speed, preview live, and copy the HTML and CSS. No JavaScript or images needed.
100% private — everything runs in your browser. Conversion happens on your device; nothing is uploaded.
Pure CSS — no JavaScript or images, so loaders are tiny and render instantly. Add aria-label or role=”status” to the element so screen readers announce loading.
How to create a CSS loader
- Pick a loader style.
- Set the colour, size and animation duration.
- Check the live preview.
- Copy the HTML and CSS into your project.
What you can use it for
- Loading states for buttons, forms and pages
- Placeholders while data or images load
- Lightweight spinners for WordPress and landing pages
- Progress indicators for apps and dashboards
More free tools
Building for the web?
Format, minify, convert and generate code with our free, private developer tools.
See all free tools →Frequently asked questions
How do I make a loading spinner with CSS?
Choose a style and colour here, then copy the HTML element and CSS keyframes into your page. The animation runs with CSS alone.
Why use a CSS loader instead of a GIF?
CSS loaders are tiny, crisp at any size, easy to recolour and don't need an extra download.
How do I make a loader accessible?
Add role="status" and an aria-label such as “Loading” to the loader element, and respect prefers-reduced-motion if you can.
What do the six loader styles look like?
Spinner ring is a circle with a faint track and one solid quarter that rotates. Dual ring has two solid arcs, top and bottom, and spins. Bouncing dots are three dots that grow and brighten in turn. Equaliser bars are four bars that rise and fall out of step. Pulse is a solid circle that expands and fades out. Progress bar is a slim track with a segment sliding across it on a loop.
How big can the loader be?
Drag the Size slider from 16 to 120 pixels; it starts at 48. For the spinner ring, dual ring and pulse, that's the width and height in the CSS. Equaliser bars are that tall, each bar a sixth of it wide. Each bouncing dot is a quarter of the size across. The progress bar is three times the size wide, so 48 gives a 144-pixel bar. Ring lines get thicker as the size grows.
How do I change the animation speed?
Use the Duration slider, which goes from 0.4 to 3 seconds in steps of 0.1 and starts at 1 second. It sets the length of one animation cycle, so a lower number gives a faster loader. The value is written into the CSS animation line, and for dots and bars the delay between items is worked out from it, so they stay in step at any speed. Every style loops continuously.
What code do I get, and how do I add it to my page?
You get two parts. The HTML is a single div with the class loader; the dots and bars styles also contain a few empty span elements. The CSS styles that class and adds a @keyframes rule, such as loader-spin. Paste the CSS into your stylesheet and the HTML where the loader should appear. If you use two different loaders on one page, rename the class and keyframes in one of them so they don't clash.
Can I pick any colour, and why is part of the ring faded?
Click the Colour swatch to choose any colour; the tool starts on #2563eb, a blue. The hex code goes straight into the CSS. The spinner ring and progress bar also draw a faint track in the same colour: the code adds 33 to the end of the hex value, which makes an eight-digit hex colour at about 20% opacity, so the track always matches the moving part.
Can I use the loaders in commercial projects?
Yes. The HTML and CSS the tool writes are yours to use in personal, client and commercial projects, and no credit is needed. There's no sign-up or account: the code is generated in your browser as you change the settings, and nothing is sent to a server. The output uses no fonts, images or JavaScript, so there are no third-party licences to check.
What if the Copy button doesn't work?
When copying works, the button briefly changes to “Copied!”. If it doesn't change, your browser didn't allow clipboard access. Click into the HTML or CSS box, select all of the code and copy it yourself. Both boxes are read-only, so you can't change the code by accident, but you can still select it. They always show the code for the loader in the preview.