Free Tool

CSS Scrollbar Customizer

I don't know about you, but I always find myself looking up the syntax for styling scrollbars on my websites. And since it's not easy to tweak pseudo-elements in the browser, I built this little sandbox. Customize your scrollbars visually and export the CSS in a couple of clicks.

1. Customize Scrollbar
Apply CSS To
Width
30px
Border Radius
10px
Thumb Padding
3px
Thumb Color
Thumb Hover Color
Track Color
2. Preview Scrollbar

Scroll me to test!

Because scrollbars are notoriously difficult to target in browser developer tools, this sandbox lets you visualize your pseudo-element styling in real-time.

WebKit browsers (Chrome, Edge, Safari) use the ::-webkit-scrollbar pseudo-elements. These allow for highly detailed styling, including border radii and padding.

Firefox, on the other hand, strictly adheres to the newer CSS standard properties: scrollbar-width and scrollbar-color. The generated CSS below handles both so you have a cross-browser compatible scrollbar.

Keep scrolling...

Almost at the bottom...

There you go! You have successfully tested the scrollbar thumb and track.

3. Export CSS

Got Scrollbar Questions?

Why is customizing scrollbars so difficult?

Styling scrollbars has historically been a fragmented experience. WebKit browsers (like Chrome and Safari) introduced a set of proprietary pseudo-elements (::-webkit-scrollbar) years ago, which allow for granular control over the track and thumb. However, Firefox rejected these as non-standard, opting instead for the official W3C CSS Scrollbars Module, which is much more limited (only allowing you to change the color and select a generic width). Developers must combine both approaches to ensure a uniform experience across all browsers.

How does Firefox handle scrollbars?

Firefox uses the standard CSS properties scrollbar-width and scrollbar-color. Unlike WebKit, you cannot set an exact pixel width, add border radii, or create padding in Firefox natively. You can only choose between auto, thin, or none for the width, and define two colors for the thumb and track.

What is the "Thumb Padding" trick?

In WebKit browsers, you cannot apply standard padding or margin directly to the scrollbar thumb to make it smaller than the track. The trick is to apply a solid border to the thumb that perfectly matches the background color of the track. This creates the visual illusion of padding, making the thumb look like it is floating inside the track.

Do custom scrollbars work on mobile devices?

Mobile browsers (like Safari on iOS and Chrome on Android) generally use "overlay scrollbars". Those are invisible, floating scrollbars that only appear when the user is actively scrolling. While your custom CSS colors will often apply to these overlay scrollbars, mobile OS designs strongly prioritize their native touch-friendly scrolling interactions, so widths and border radii may be ignored or overridden.

Your app here

Scrollbars done?

Now integrate Progressier to your website to add installation + push notifications.

Generate PWA See plans