A free visual CSS custom scrollbar generator — set width, track color, thumb color, hover state, and border radius with live preview. Copies production-ready Webkit and Firefox CSS in one click, no login required.

The CSS Scrollbar Generator is a free, browser-based tool that lets developers and designers style ::-webkit-scrollbar and Firefox scrollbar-color properties visually — no DevTools guesswork, no browser-specific documentation hunting. Adjust width, colors, hover state, and border radius while watching a live scrollable preview update in real time. Copy clean CSS in one click.
Custom scrollbar styling is one of the most awkward parts of CSS. The ::-webkit-scrollbar pseudo-element API works in Chrome, Safari, and Edge but requires five separate rules. Firefox uses a completely different pair of properties (scrollbar-width and scrollbar-color). The syntaxes don't overlap, the documentation is scattered, and you can't see the result without loading an actual scrollable element in a browser.
Most developers end up copying a Stack Overflow snippet that only covers one browser, or spending 15 minutes iterating in DevTools to get colors and sizing right.
Two sliders set the visual weight of the scrollbar:
Three color pickers cover every visual state:
Two checkboxes let you control what CSS is generated:
::-webkit-scrollbar pseudo-element rules for Chrome, Safari, and Edge.scrollbar-width and scrollbar-color in a single rule block.Both can be enabled simultaneously for maximum browser coverage.
The default output targets .scrollable. Change it to any valid CSS selector — body, .chat-window, #sidebar, or a utility class — and the generated CSS updates instantly.
A scrollable box in the right panel renders your scrollbar configuration in real time. Scroll through the preview content to see exactly how the track, thumb, and hover state look in an actual scrollable context — not just a static mockup.
Click Copy CSS to copy the complete output to your clipboard. The button shows a check icon for 2 seconds to confirm success.
::-webkit-scrollbar and scrollbar-color formatsThe tool is a single "use client" React component. Config state is managed with useState and a generateCSS() function computes the output string on every render. The preview scrollbar style is injected via a <style> tag with dangerouslySetInnerHTML — the only safe way to apply ::-webkit-scrollbar pseudo-element CSS dynamically, since Tailwind and CSS Modules cannot target pseudo-elements by name at runtime.
A hexToRgba() utility converts hex + opacity slider values into rgba() strings so opacity works correctly across the Webkit and Firefox outputs without storing alpha separately in state.
You're building a SaaS dashboard with a custom sidebar. The default OS scrollbar doesn't match your design system. Style the sidebar scrollbar with your brand color at 8px wide, rounded corners, and a hover state — done in 90 seconds.
Message lists and social feeds need scrollbars that feel native but on-brand. Generate a thin (4px), semi-transparent scrollbar with a rounded thumb that appears on hover.
Define scrollbar tokens for your design system. Use the tool to find the right values, then document them as CSS custom properties your team can reference.
Set width to 0 to output the hide-the-scrollbar-but-keep-scrollability pattern. The tool generates both the Webkit and Firefox rules needed to suppress the scrollbar without locking scroll.
The CSS Scrollbar Generator eliminates the trial-and-error cycle of custom scrollbar styling:
Try it now: css-scrollbar-generator.tools.jagodana.com
The client needed a robust developer tools solution that could scale with their growing user base while maintaining a seamless user experience across all devices.
We built a modern application using CSS and Scrollbar, focusing on performance, accessibility, and a delightful user experience.
Category
Developer Tools
Technologies
Date
April 2026
More work in Developer Tools