Toolvito

Calculates on this device. File exports run online.

Game UI Asset Generator

Choose a style and colours and get the parts of a game interface: buttons in four states, a popup panel, health and progress bars and an icon frame. Each part comes with its nine-slice margins, as separate PNG or SVG files in folders, or on one sprite sheet with its atlas. You can also turn your own picture into an Android nine-patch file.

Enter your values

Choose the parts, their style and colours. The table lists every file with its size and nine-slice margins; the box below makes them.

Your values

Primary buttons and the progress bar.

More options

The radius of rounded corners, or the size of cut corners.

Usually left empty: a game draws its own text. A button with text should not be stretched.

0 for a plain panel.

Each part that stretches, with the 1-pixel border Android reads, in android/res/drawable.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Make the parts.

Make the files

Make the files

Separate files in folders with nine-slice.json, or the sprite sheet with its atlas, as chosen above; for a nine-patch, the .9.png.

More options

The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to make a kit

  1. Tick the parts you need and choose a shape: rounded, pill, cut corners or square.
  2. Choose the colours and sizes. Every part is drawn at exactly the pixel size you give.
  3. Press Make the parts. The table lists every file, its size and its nine-slice margins; the preview shows the margins as dashed lines.
  4. In the box below, make a ZIP of separate files, or choose One sprite sheet with its atlas above to get one sheet.

Button states

  • Normal: your colour. Hover: 15 % lighter. Pressed: 15 % darker, sitting lower on its 3-D edge. Disabled: grey of the same lightness.
  • Buttons have no text unless you add it under More options: a game usually draws its own text, and text in a picture cannot be stretched.

Nine-slice margins

A nine-slice part is cut into nine pieces: the four corners keep their size, the edges stretch one way and the centre both ways, so one picture fits buttons and panels of any size without blurred corners. The margins (left, top, right, bottom in pixels) cover the rounded or cut corners, the border, the 3-D edge of a button and the title bar of a panel. They are in nine-slice.json and in the atlas.

Sprite sheet and atlas

With One sprite sheet, the parts are placed in rows, largest first, 2 pixels apart, on a sheet at most 1024, 2048 or 4096 pixels wide. The atlas is a JSON file with each part’s place (frame x, y, w, h), its size and its nine-slice "borders". The service places every part pixel for pixel and checks the sheet after it is written.

Android nine-patch files

  • A nine-patch is a PNG with an extra 1-pixel border: black lines on its left and top mark the part that stretches; optional lines on its right and bottom mark where content (such as text) goes, and without them Android uses the left and top lines. It is saved with the .9.png extension in res/drawable (Android developers, “Drawables overview”, read 29 October 2026).
  • Choose An Android nine-patch from my picture to add the border to your own picture: give how many pixels at each edge keep their size. Your picture is copied pixel for pixel.
  • In the kit, tick Also Android nine-patch copies under More options to get a .9.png of every part that stretches.

What this page does not make

  • Animated buttons (GIF): the parts are still pictures.
  • Bitmap fonts and the text of your game.
  • Files for one particular game engine: the atlas is a plain JSON file that most engines and your own code can read.

Privacy

The parts are drawn in your browser, and your picture is read there. Only when you press the button in the box below are the drawn pictures (or your picture) sent to the Toolvito server to make the files. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

Related tools