FLXCode PNG to CUR Converter

FLXCode apps

Appearance

PNG to CUR Converter

Make a Windows mouse cursor from a PNG. Click the spot that should do the clicking, tick the sizes and save the .cur file. Your picture stays on your device.

or drop them here, or paste with Ctrl+V

HEIC, WebP, AVIF, PNG, JPG, GIF and BMP. Up to 50 files and 500 MB at a time. Nothing is uploaded.

Convert to
Sizes in the file (pixels)
Hotspot: click the picture, or use the arrow keys

Hotspot at 0, 0 on the 32 px size.

#FFFFFF

Works offline: load this page, convert one file, turn off Wi-Fi, convert more. Location and camera data are removed from the converted files.

No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.

Problem or idea? Email us

Quick start

  1. Add a PNG, ideally square with a see-through background and at least as big as the largest size you tick.
  2. Click the small preview where the pointer should aim, or press Top left or Centre. Tick the sizes.
  3. Save the .cur. If you change the hotspot or sizes afterwards, press "Convert again".

Offline use: convert one file, then turn off Wi-Fi.

What a cursor file needs

A .cur file is an icon file with one addition. Every image in it carries a hotspot, the single pixel Windows treats as the position of the pointer. For an arrow that is the tip, for a crosshair the middle. If the hotspot is off, clicks land next to where the pointer seems to be.

Windows also picks the image by display scale. Microsoft lists 32 px below 150% scale, 48 px at 150 to 199%, 64 px at 200 to 299%, 96 px at 300 to 399% and 128 px from 400%. This page ticks 32, 48 and 64 to start with, so one file serves most screens. Windows can replace any standard pointer with your own file from the mouse settings.

What changes in the file

  • The picture is drawn into a transparent square at each size you tick. A wide or tall picture gets see-through bars. It is never cropped.
  • Soft edges stay soft. Each image is a 32-bit bitmap with an alpha channel, plus the old on/off mask for programs that still read it.
  • The hotspot is stored per size, scaled from the spot you clicked on the 32 px grid. The name stays: arrow.png becomes arrow.cur.

What is inside the file

Here is the directory for the default sizes, with the hotspot in the middle. The header is 54 bytes, then each image follows.

SizeHotspot x, yImage bytesStarts at byte
32 px16, 16426454
48 px24, 2496404318
64 px32, 321693613958

The whole file is 30,894 bytes for blank images. The hotspot sits in the two fields an icon uses for colour planes and bit count, and the type field is 2 instead of 1.

Limits

  • Animated cursors (.ani) are out of scope. A PNG gives one still cursor.
  • The sizes stop at 128 px, the largest Microsoft lists for a cursor. Up to 50 pictures, 500 MB together, 100 MB each.

How it works and privacy

Your browser opens the PNG and draws it on a canvas for each size. The page then writes the .cur bytes itself: a 6 byte header, 16 bytes for each size, and the images as bitmaps. Nothing is uploaded or stored. A finished batch counts one event, "png>cur", and never a file name or size (details).

Zip files are made with fflate. Licences: Open source used on this site.

FAQ

How do I use a .cur file in Windows?

Windows lets you replace any standard pointer from the mouse settings. Pick the pointer you want to change, browse to your .cur file and apply it. Programs can also load a .cur file themselves.

Where should the hotspot go?

On the pixel that should do the clicking: the tip of an arrow, the end of a pointing finger, the centre of a crosshair. Click that spot in the preview. If your picture has empty margin, aim at the tip itself and not at the corner of the picture.

Why does the file hold three sizes?

Windows uses a bigger cursor on bigger display scales, so a file with 32, 48 and 64 px images looks sharp on a normal screen and on a 150% or 200% one. Untick the sizes you don't need for a smaller file.

Why is my cursor blurry?

A small PNG has to be enlarged to fill a big size, and enlarging blurs. Start from a picture at least as big as the largest size you tick, or untick the big ones.

Can I make an animated cursor?

No. Animated cursors are .ani files, and this page does not write them. You get one still image per size.

My PNG is not square. What happens?

It is centred in the square with see-through bars, so the hotspot you pick applies to the square, not to the picture. Crop the PNG first if you want it to fill the square.

More from FLXCode

  • ICO ConverterConvert a picture to an .ico file with the sizes you tick, 16 to 256 px. Transparency is kept. In your browser.
  • PNG to WebP ConverterConvert PNG images to WebP in your browser. Quality or lossless, transparency kept. No upload, batch and zip.
  • Image ResizerResize photos by pixels, percent or preset for Instagram and email. Batch and zip. Nothing is uploaded.
  • Favicon GeneratorMake favicon.ico (16, 32, 48), Apple touch, 192 and 512 icons, a manifest and the HTML for them. In your browser.

Share PNG to CUR Converter