Sprite Sheet Splitter

Split game and animation sprite sheets into individual PNG frames, using a grid or automatic detection, and preview the frames as an animated GIF.

Berjalan dalam pelayar anda. Fail anda tidak pernah meninggalkan peranti. Lihat cara menyemaknya

…

Cara melakukannya

  1. 1
    Tambah lembaran

    Pilih imej lembaran sprite.

  2. 2
    Pilih kaedah

    Lajur dan baris, saiz sel atau automatik.

  3. 3
    Tetapkan nilai

    Masukkan jumlah atau saiz, margin dan jarak, atau tetapan pengesanan.

  4. 4
    Muat semula jika perlu

    Muat semula lembaran selepas menukar kaedah.

  5. 5
    Pengeksportan

    Simpan bingkai PNG, pratonton GIF atau atlas JSON.

Tentang alat ini

Lembar sprite mengemas banyak bingkai animasi atau grafik permainan ke dalam satu imej. Enjin suka mereka, tetapi mengedit bingkai tunggal, menggunakan semula sprite di tempat lain atau menukar antara enjin sering memerlukan bingkai sebagai fail yang berasingan. dengan bilangan lajur dan baris yang tetap, dengan saiz sel dengan margin dan jarak, atau secara automatik mencari setiap sprite berasingan pada latar belakang telus atau biasa.

Grid by columns and rows

For evenly spaced sheets, enter the number of columns and rows; the cell size is calculated from the sheet size, minus an outer margin and spacing between cells if the sheet has them.

Grid by cell size

When you know each frame is, for example, 32 x 32 or 64 x 48 pixels, enter the cell width and height. The tool fits as many cells as the sheet holds, again with margin and spacing. Empty cells (fully transparent) can be skipped.

Automatic detection

For packed sheets with sprites of different sizes, automatic mode treats transparent pixels, or pixels matching the top-left background colour within a tolerance, as empty. Every connected group of non-empty pixels becomes a sprite. Parts closer than a set distance are joined, so a character with a detached sword stays one sprite, and specks below a minimum size are ignored. Sprites are ordered left to right, top to bottom.

Outputs

Selected frames can be saved as PNG with transparency. The GIF preview plays the selected frames at the delay you set, to check animation order. The JSON atlas lists each sprite's position and size in a common texture-atlas layout, useful for engines and for rebuilding the sheet.

Re-cutting

Change the split settings and load the sheet again to cut it differently; the settings are remembered.

Uses

Editing single frames, porting sprites between engines, extracting icons from icon sheets, preparing frames for an animated GIF or WebP, and studying how sprite animations are built.

Related tool

To go the other way, from frames to a packed sheet, use the sprite sheet packer on this site.

Tips

Check that the sheet's width divides evenly by the cell size; if not, look for an outer margin or spacing. For automatic mode, sheets with a solid background colour work if the top-left pixel is background.

Limits

Automatic detection needs a clear background, and sprites that touch each other are treated as one. This is not a pixel editor. Respect the licences of game assets. The sheet is processed locally.

Contoh berselesaian

Lembaran 512 x 256 watak berjalan dalam 8 lajur dan 4 baris menjadi 32 bingkai 64 x 64; bingkai 1 hingga 8 bermain sebagai pratonton GIF pada 100 ms dan disimpan sebagai PNG dengan atlas JSON.

Ringkasnya

Soalan lazim

Bagaimana saya membahagikan sehelai dengan bingkai yang sama?

Pilih lajur dan baris, atau saiz sel, dan tambah margin dan jarak jika lembaran mempunyai mereka.

Bagaimana jika spirit mempunyai saiz yang berbeza?

Gunakan pengesanan automatik; setiap sprite berasingan terdapat pada latar belakang telus atau biasa.

Kenapa dua spirit digabungkan?

Mereka menyentuh atau lebih dekat daripada jarak gabungan.

Boleh saya lihat animasi?

Pilih bingkai dan simpan pratinjau GIF.

Apakah atlas JSON?

Senarai kedudukan dan saiz setiap sprite dalam lembaran, yang digunakan oleh enjin permainan.

Adakah lembaran dimuat naik?

Tidak, pemotongan berlaku di pelayar anda.

Percuma sepenuhnyaTiada bayaran, tiada pendaftaran
Fail kekal peribadiSemuanya berjalan dalam pelayar anda
Mudah dalam bahasa andaTersedia dalam banyak bahasa