EN
PortuguêsEnglishEspañol
All tools
Developer tools 100% free

CSS loader generator (loading spinner)

Tap a template, adjust color, size and speed and copy the code. They all use only transform and opacity, which are light on the browser, and respect people who prefer less motion.

Thank you so much for helping!

Every donation helps pay for the servers and keeps the tools free for everyone. Pick or type an amount:

Secure payment by Stripe. Opens in a new tab.

Back to CSS and design

CSS loading animations

Available in: PortuguêsEnglish

Advertisement

CSS loader generator (loading spinner): what it is for

Choose from seven loading indicator templates (ring, double ring, dots, bars, pulse, progress bar and flipping square) and adjust the color, size and duration. The animations use only transform and opacity.

The code comes with role=status, hidden text for screen readers and a slower animation for people who ask for less motion in their system settings.

How to use

  1. Choose the loader template.
  2. Adjust color, size and duration.
  3. Copy the HTML and CSS.

When to use it

  • Loading screens for sites and apps.
  • Buttons while a form is being submitted.
  • Replacing heavy loading GIFs.

Frequently asked questions

Why use CSS instead of a GIF?

A CSS loader weighs a few bytes, stays sharp on any screen, changes color with a variable and runs off the browser's main thread, so it stays smooth even while the page loads.

Is the loader accessible?

The code includes role="status" and hidden text (Loading…) for screen readers. With prefers-reduced-motion, the animation gets much slower for people who ask for less motion.

When should I show a loader?

Only when the wait goes beyond about half a second. For very short waits, a loader flashing on screen is more annoying than helpful.

Is it really free?

Yes, 100% free. No sign-up, no subscription and no usage limits. All Tools123 tools are free and run right in your browser.

Similar tools

The tools are provided as is, without warranty. We are not responsible for the results or for how they are used.