Custom Scrollbar CSS Generator

Customize width, track, and thumb colors to design a styled scrollbar, then copy the CSS.

Scroll inside this box to preview your custom scrollbar.

Browser default scrollbars are functional but visually generic, and a custom-styled scrollbar can tie a scrollable panel into your overall design instead of looking like an unstyled afterthought.

Adjust the width, track color, thumb color, and thumb corner radius with live controls, watch the preview box's scrollbar update as you scroll inside it, then copy the exact WebKit-based CSS needed to apply the same styling elsewhere.

This uses the -webkit-scrollbar pseudo-elements supported in Chrome, Safari, and Edge; Firefox uses a different, more limited scrollbar-color property, which is also included in the generated code as a fallback.

Because everything runs locally in your browser, results appear instantly and nothing you type or upload is ever sent to a server.

Bookmark this page if you expect to use this tool regularly — it loads fast and behaves the same way every time, with no account needed.

This kind of task shows up constantly in everyday writing, coding, design, and admin work, which is exactly why a dedicated, focused tool saves so much back-and-forth.

A tool that does one job well, without a cluttered interface or unrelated features competing for attention, tends to be faster to use than a heavier all-in-one app.

If you find yourself needing this conversion or calculation often, keeping this page open in a tab is usually faster than digging through a bigger software suite's menus.

Frequently asked questions

Does this work in Firefox too?

Firefox supports a simpler scrollbar-color and scrollbar-width property rather than the WebKit pseudo-elements — the generated CSS includes a Firefox-compatible fallback using those properties.

Can I apply this to just one scrollable div instead of the whole page?

Yes, apply the generated CSS selector to a specific class or ID instead of a global selector to scope the custom scrollbar to just that element.