9-Slice PreviewerNine Patch Editor & 9-Slice Preview
The 9-Slice Previewer is a nine patch editor online: drop a panel, a button or a whole UI sheet and set its four margins by dragging the guides, or press Find margins and it picks the smallest margins that still stretch cleanly. Then drag the panel's corner and see it at any size, the corners exactly as drawn and the edges and middle stretched, tiled or tiled to fit, the way Godot 4 draws a NinePatchRect or a StyleBoxTexture.
It shows the problems before your game does. The stretch bands turn red where the columns or rows it would stretch aren't all the same, so you see a smear coming, and a tiled middle that ends on part of a tile gets the nearest sizes that hold whole tiles. Drop a sheet with its JSON and every piece comes with its margins; the JSON of our UI packs reads straight in. Without a JSON it finds each piece on the sheet and you click the one you want. The same piece also shows as a small box, a wide bar, a tall window and a big panel side by side.
Download the piece cut from its sheet, a NinePatchRect scene and a StyleBoxTexture for Godot 4, CSS border-image classes for the web, a JSON of the margins and the panel drawn at your size, with the same margins written out for Unity, GameMaker, Phaser, Ren'Py, Defold and Unreal. Every piece of a sheet comes in one ZIP if you like. It runs on your computer and never uploads your art.
A first session
- 1Drop a panel or a UI sheet with its JSON (or try ours, the stone sheet of Pixel UI Kit's sample).
- 2Pick a piece, then drag the four guides or press Find margins.
- 3Drag the panel's corner or the sliders, and choose Stretch, Tile or Tile Fit across and down.
- 4Download the piece with its Godot scene, StyleBoxTexture, CSS and JSON in one ZIP.
- It exports
- The piece as a PNG, cut from its sheet
- Godot 4 NinePatchRect scene (.tscn) and StyleBoxTexture (.tres)
- CSS border-image classes and a JSON of every piece's margins
- The panel drawn at your size, as a PNG
- Margins for Unity, GameMaker, Phaser, Ren'Py, Defold and Unreal
- Try the demo, then buy it
- Free to use, no account needed: open your own files and download everything you make.
- Can I use what I make in a commercial game?
- Yes. What you make with the tools is yours to use in your games, commercial ones too, under the Gridwright licence.
Packs that work with it
More tools
- Isometric BuilderIsometric maps and scenes
- Tile ModelerLow-poly 3D models and levels from 2D tiles
- Pixel Art Size CalculatorThe right sprite, tile and canvas sizes
- Godot Pixel-Perfect SetupCrisp, jitter-free pixel art in Godot 4
- Autotile Tester47-tile and 16-tile autotiles checked on a real map, with Godot's peering bits set for you
- Dungeon & Map GeneratorDungeon, cave and overworld maps
- Autotile BuilderComplete autotile sets from a small template
- Farmer GeneratorFarming RPG characters with every animation
- Hero CreatorSide-view platformer heroes
- Ship BuilderModular pixel spaceships
- Planet GeneratorRotating pixel planets
- PixelatorPixel art from any picture
- Normal MapsNormal maps for 2D lighting
- CRT FilterRetro screen looks for screenshots and trailers
- Sprite Sheet CutterSingle frames from a sprite sheet
- Palette SwapperNew colours for any sprite or sheet
- Sprite Sheet MakerOne sprite sheet from many frames
- Pixel Art UpscalerBigger pixel art without blur
- Pixel Art Background RemoverTransparent sprites from a flat background
- Pixel Palette & Shading Ramp MakerShading ramps and palettes for pixel art
- Pixel Art EditorPixel art drawn in your browser
- Sprite Animation PreviewerYour animation played, checked and lined up
- GIF to Sprite SheetSprite sheets and frames from animated GIFs
- Color Palette ExtractorThe palette of any picture, with pixel counts
- Tileset ExtractorThe tileset of a map picture, and the map to rebuild it
- Sprite Outline AdderOutlines round sprites and whole sheets
- Sound Effect GeneratorGame sound effects, from retro to sci-fi
- Particle FX BakerLooping pixel-art effects
- 3D Sprite Rotator4, 8 and 16 direction sprite sheets
- Seamless Texture MakerSeamless textures from your photos
- Chiptune ComposerChiptune music and loops for your game
- Pixel Tree & Plant GeneratorPixel-art trees and plants, with wind