Skip to main content

CSS Cursor Generator

API reference

Generate the CSS cursor property — pick from all 36 cursor types (pointer, grab, not-allowed, resize, zoom…) in a hover-to-try gallery, or add a custom cursor image with a hotspot and fallback. Copy the CSS.

Input

Hover the tiles in the preview to try every cursor.

Custom cursor image (optional)

PNG, SVG or .cur, ideally 32×32 px (browsers ignore cursors larger than 128 px). The cursor chosen above becomes the fallback.

The click point, measured from the image's top-left corner.

Output

Your cursor gallery will appear here.

cursor declaration
 
CSS
 
Was this helpful?

More ways to use this tool

REST API

curl -X POST https://api.iotools.cloud/v1/tool/css-cursor-generator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "cursor": "pointer",
    "selector": "button"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `css-cursor-generator` tool (CSS Cursor Generator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Embed widget

<iframe
  src="https://iotools.cloud/embed/css-cursor-generator/"
  width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
  title="CSS Cursor Generator — iotools.cloud"
  sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
  allow="clipboard-write"
  style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>

Drop this into your own page — free, no key required, just a link back.

Cost per API/MCP callFrom 5 credits
Need more credits?View pricing

Also available with

Guides

The CSS cursor property sets the mouse pointer shown over an element. This generator lists all 36 standard cursor types in a live gallery. Hover any tile to try that cursor, pick one, and copy the CSS. You can also put a custom cursor image in front of it, with a hotspot and a built-in fallback.

How to use it

  1. Pick a cursor. Each option says what it is for, such as pointer for links and buttons or not-allowed for disabled controls. The chosen tile is highlighted in the preview.
  2. Set the selector. The CSS rule targets .element by default. Change it to button, .card or any other selector.
  3. Optionally add a custom image. Paste an image URL or a data: URI and set the hotspot, the pixel that registers the click. The keyword you picked becomes the fallback, which CSS requires after any image.
  4. Copy the output: the single cursor: declaration or the full CSS rule.

Which cursor should I use?

  • pointer for anything clickable that isn't a native link.
  • text over selectable text, default over everything else.
  • grab and grabbing for draggable items, before and during the drag.
  • not-allowed for disabled actions. It's a hint, not protection, so disable the control too.
  • wait only when the page truly can't be used. Prefer progress when the user can keep working.
  • The *-resize cursors match the edge or corner being dragged. ew-, ns-, nesw- and nwse-resize are the two-way versions.

Custom cursor tips

  • Keep images at 32×32 px. Most browsers ignore cursor images larger than 128 px.
  • PNG and SVG work in all modern browsers. .cur files are mainly for old versions of Internet Explorer.
  • The preview shows your custom image only when it's a base64 data: URI. A remote image URL is written into the CSS, but the preview keeps the fallback cursor because it doesn't load third-party files.

For focus styles, try the CSS Outline Generator. For hover effects, see the CSS Transition Generator.

Privacy

Everything runs in your browser. Your settings and images are never uploaded.

cursorcss cursorcustom cursorpointermouse cursorcursor typescss generator

Love the tools? Lose the ads.

One payment clears every ad from your account, for good. No subscription, no tracking.