LazyTools

🔒 Every tool runs in your browser, the files and values you enter are never uploaded to any server. How it works

⏳ CSS Loader / Spinner Generator

Pick a spinner style and set its size, colour and speed, then copy the HTML and CSS. No images or libraries, just CSS.

Spinner
CSS
<!-- HTML -->
<div class="loader"></div>

/* CSS */
.loader {
  width: 48px;
  height: 48px;
  border: 6px solid #e2e8f0;
  border-top-color: #1d87f1;
  border-radius: 50%;
  animation: lt-spin 1.0s linear infinite;
}
@keyframes lt-spin { to { transform: rotate(360deg); } }
Rate this tool:
Anonymous, no account, no identifier

How the css loader / spinner generator works

Loading spinners are made entirely with CSS animations, no images, fonts or JavaScript libraries needed, which keeps them tiny and crisp at any size. This generator offers several styles (a spinning ring, a dual ring, bouncing dots, pulsing bars and a pulse circle), each built from an element and a @keyframes rule, and lets you set the size, colour and speed. It outputs the small HTML snippet and the CSS together, so you can drop a loader into any page. It runs in your browser.

Pure-CSS spinners are resolution-independent and theme-friendly: change one colour value and the whole spinner updates. They animate transform, so they stay smooth. For accessibility, pair a visible spinner with an aria-live region or aria-busy on the container so screen-reader users know content is loading, a spinner alone is invisible to them.

Frequently asked questions

How do I make a CSS loading spinner?

A classic ring spinner is a square element with a border, one border side coloured, border-radius 50% to make it a circle, and a keyframes animation that rotates it 360 degrees. This tool builds that and several other styles for you with adjustable size, colour and speed.

Do CSS spinners need JavaScript or images?

No. They are built purely from an HTML element and a CSS @keyframes animation, so there are no image requests or libraries. That makes them lightweight, crisp at any size, and easy to recolour.

How do I change a spinner's speed?

Adjust the animation duration: a smaller value spins faster, a larger one slower. This generator has a speed slider that sets the duration in the output CSS.

Are CSS loaders accessible?

A spinner alone is not announced to screen readers. Add aria-busy="true" to the loading container or an aria-live region with loading text, so assistive technology users know content is on the way. The visual spinner then complements, rather than replaces, that signal.

Is anything uploaded?

No. The HTML and CSS are generated in your browser and never sent to a server.

More CSS & design tools

From the blog