CSS Loader Generator
Build CSS loading spinners with a live preview. Pick a style, adjust size, color, and speed, then copy ready-to-use CSS and HTML.
No More GIFs or Icon Fonts
Loading spinners built with CSS stay sharp at any size, weigh almost nothing, and can be recolored in a click. Pick a style, tune it visually, and copy CSS that is ready to drop into any project.
How this CSS Loader Generator works
CSS loading animations rely on two building blocks: a shape drawn with borders, transforms, or box-shadow, and a @keyframes rule that moves it on a loop. Six loader styles are built into this tool, each using a different technique. Ring and Dual Ring use the border trick, coloring part of a circle's edge differently and spinning it with rotate. Dots and Bars stagger the same animation across several elements using animation-delay, so each piece moves a beat behind the last. Pulse scales and fades a single circle, and Ripple expands a ring outward while its opacity drops to zero, the same effect used for radar-style loading indicators.
Pick a style, then adjust size, color, thickness, and speed with the controls below the preview. Size changes the shape's overall dimensions, thickness controls border width on the ring-based styles, color updates every element in the animation at once, and speed sets how many seconds one loop takes, from quick and energetic to slow and calm. The preview background switcher lets you check how the loader reads against white, gray, and dark surfaces before you commit to a color, since a light-colored ring can lose contrast on a pale background.
Once it looks right, copy the CSS block, which includes the keyframes and the class rule, plus the small HTML snippet needed to render it. Nothing is uploaded; the loader is generated and rendered entirely in your browser.
How to use this CSS Loader Generator
Pick a loader style
Choose Ring, Dual Ring, Dots, Bars, Pulse, or Ripple from the style picker, and the preview switches to that animation instantly.
Adjust size, color, and speed
Drag the sliders to set size, thickness, and how fast the loop runs, or type a hex color to match your brand.
Copy the CSS and HTML
Copy the generated CSS block and the matching HTML markup, then paste both into your project.
Example Usage
A classic spinning ring loader, the most common pattern for inline loading states:
Frequently Asked Questions
What is a CSS loader and why use it instead of a GIF?
How do I add this loader to my website?
Can I change the loader color to match my brand?
Why does my spinner look choppy instead of smooth?
Do CSS loaders work without JavaScript?
How do I show the loader only while content is loading?
Are these loaders accessible to screen reader users?
Will the generated CSS work in all browsers?
How do I make the loader bigger or smaller?
Does this tool store or upload the loaders I create?
Related Tools
CSS Formatter
Format CSS code for better readability.
Random Color Generator
Generate a random color
Gradient Generator
Generate the gradient using two colors
CSS Box-Shadow Generator
Design custom CSS box shadows with a live preview. Adjust offset, blur, spread, and color, stack multiple layers, and copy the code.
CSS Triangle Generator
Create CSS triangles with a live preview. Pick a direction, size, and color, choose the border-trick or clip-path method, and copy the code.
CSS Background Maker
Design solid, gradient, and pattern backgrounds with a live preview. Adjust colors, angle, position, and spacing, then copy ready-to-use CSS.
The CSS Loader Generator is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

