CSS Loading Spinner Generator
Build a clean CSS loading spinner visually. Pick a style, size, color, speed and thickness, watch the live animated preview, then copy the full HTML and CSS keyframes code.
Design
Live preview
HTML
CSS
How to use
- Choose a spinner style and adjust size, color, speed and thickness.
- Check the live preview on a light background.
- Copy the HTML into your page and the CSS into your stylesheet. No JavaScript needed.
Note: All animations use plain CSS keyframes, so they run on every modern browser without any library. Thickness applies to ring styles; dots, bars and pulse scale with size and color.
Tips
- Match the spinner color to your brand or to the button that triggered the loading state.
- Keep speed between 0.6 and 1.2 seconds for a calm, professional feel.
- For dark backgrounds, generate the spinner with a light color so it stays visible.