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 di browser Anda. File Anda tidak pernah keluar dari perangkat. Lihat cara memeriksa
…
Cara melakukannya
- 1Tambahkan lembar
Pilih gambar lembar sprite.
- 2Pilih metode
Kolom dan baris, ukuran sel, atau otomatis.
- 3Atur nilai
Masukkan jumlah atau ukuran, margin dan jarak, atau pengaturan deteksi.
- 4Isi ulang jika perlu
Tambahkan lembaran lagi setelah mengubah metode.
- 5Ekspor
Simpan bingkai PNG, pratinjau GIF atau atlas JSON.
Tentang alat ini
Sprite sheet mengemas banyak frame animasi atau grafis game ke dalam satu gambar. Mesin menyukai mereka, tetapi mengedit bingkai tunggal, menggunakan kembali sprite di tempat lain atau mengubah antara mesin sering membutuhkan bingkai sebagai file terpisah. dengan jumlah kolom dan baris yang tetap, dengan ukuran sel dengan margin dan jarak, atau dengan menemukan setiap sprite terpisah secara otomatis pada latar belakang transparan atau polos.
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 perhitungan
Sebuah lembar 512 x 256 dari karakter berjalan di 8 kolom dan 4 baris menjadi 32 frame 64 x 64; frame 1 sampai 8 bermain sebagai pratinjau GIF pada 100 ms dan disimpan sebagai PNG dengan atlas JSON.
Fakta singkat
- Kategori: Gambar
- Berfungsi di browser Anda, tanpa daftar, tanpa unggah.
- Masukan Anda tetap di perangkat Anda.
- Tersedia dalam bahasa Inggris.
- Konten terakhir ditinjau:
- Sumber resmi: W3C, Portable Network Graphics (PNG) Specification, Third Edition
Pertanyaan yang sering diajukan
Bagaimana aku membagi selembar dengan bingkai yang sama?
Pilih kolom dan baris, atau ukuran sel, dan tambahkan margin dan jarak jika lembar memiliki mereka.
Bagaimana jika sprite memiliki ukuran yang berbeda?
Gunakan deteksi otomatis; setiap sprite terpisah ditemukan pada latar belakang transparan atau polos.
Mengapa dua sprite digabungkan?
Mereka menyentuh atau lebih dekat dari jarak bergabung.
Boleh aku memeriksa animasi?
Ya, pilih frame dan simpan preview GIF.
Apa itu atlas JSON?
Daftar posisi dan ukuran setiap sprite di lembar, yang digunakan oleh mesin game.
Apakah lembar diunggah?
Tidak, pemotongan terjadi di browser Anda.
