Canonical: https://toolipedia.app/css-scrollbar-generator

# CSS Scrollbar Generator

Customises scrollbar width, colours and rounded thumb with a live preview and copies the CSS, using the WebKit pseudo-elements and the standard scrollbar properties.

Breadcrumbs: Toolipedia > Developer tools > CSS generators > CSS Scrollbar Generator

## About CSS Scrollbar Generator

Scrollbars can be styled two ways. The WebKit pseudo-elements ::-webkit-scrollbar, -track and -thumb give exact pixel widths, thumb colours, a hover colour and rounded corners. The standard scrollbar-width and scrollbar-color properties work in Firefox and current Chromium and Safari, but only offer thin or auto sizing and two colours. This generator writes either one or both, with a live preview box using your own browser. One catch: Chrome 121 and later ignore the WebKit rules when the standard properties are set.

## How to use CSS Scrollbar Generator
1. Enter the selector of the scrolling element and choose both, standard only or WebKit only output.
2. Set the width, thumb, track and hover colours, corner radius and the space around the thumb.
3. Copy the CSS and check the live preview in the browsers your visitors use.

## Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.

## Also known as
- css scrollbar generator
- custom scrollbar css
- webkit scrollbar styling
- scrollbar-color generator
- style scrollbar thumb and track

## Frequently asked questions

### Why does my rounded thumb disappear in new Chrome?

Chrome 121 and later use the standard scrollbar-color and scrollbar-width properties when they are present and ignore the ::-webkit-scrollbar rules. Choose WebKit-only output if you need exact sizes and rounding.

### Does scrollbar-width accept pixel values?

No. The standard property only accepts auto, thin and none. This tool writes thin for widths up to 8 px and auto for wider bars.

### Can I style the scrollbar of the whole page?

Yes. Use html or body as the selector. Overlay scrollbars on phones and some systems may ignore custom colours, because the operating system draws them.

### Is CSS Scrollbar Generator free?

Yes. CSS Scrollbar Generator on Toolipedia is free to use, with no sign-up and no watermark.

### Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

### Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

### Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

## Related tools

More free tools that go well with CSS Scrollbar Generator:
- [CSS grid generator](https://toolipedia.app/css-grid-generator)
- [CSS Prefixer](https://toolipedia.app/css-prefixer)
- [CSS Reset and Variables Starter Generator](https://toolipedia.app/css-reset-and-variables-starter-generator)
- [CSS specificity calculator](https://toolipedia.app/css-specificity-calculator)
- [CSS border radius generator](https://toolipedia.app/border-radius-generator)
