← All tools

CSS Cursor Generator

Generate CSS cursors from standard keywords or a local PNG. Set the hotspot, compare the fallback, and copy or download CSS.

css-cursor-generatorLOCAL WORKSPACE

Enabling local controls…

Cursor settings

Cursor preview and CSS

Choose your settings, then generate CSS.

How to use this tool

Choose a system cursor or open a local PNG and set its hotspot and fallback. Apply the custom-cursor class to your element.

For a drag handle, try grab. If a 16 × 16 PNG has its arrow tip at (2, 3), set X=2 and Y=3, then choose grab as the fallback.

W3C CSS UI 4 · cursor · W3C PNG

When not to use it

Cursor shapes depend on the browser and operating system. A destination site's Content Security Policy can block data images and trigger the fallback. Verify with a real mouse in the destination page.