Frame Duration Calculator

Convert frames per second (FPS) to frame duration in milliseconds

Frame Duration
16.67 ms
Seconds Per Frame
0.0167 s

Common FPS Values

Tip: Frame duration is calculated as 1000ms divided by FPS. This is useful for:

How to Use the Bitmap Font Preview Tool

1. Upload Your Font Image

Select or drag & drop your bitmap font image. The image should contain all characters in a grid layout.

2. Configure Font Settings

Set the character width, height, spacing, and select which characters are included in your font.

3. Generate Preview

Click "Generate Font Preview" to see how your font will look with the current settings.

4. Export Font Data

Download the font data in JSON format or as a Phaser configuration for use in your game engine.

Benefits of Using Bitmap Fonts

Pixel-Perfect Rendering

Bitmap fonts maintain their crisp appearance at any scale, perfect for pixel art games.

Consistent Appearance

Your fonts will look exactly the same across all devices and platforms.

Custom Styling

Create unique fonts that match your game's aesthetic perfectly.

Better Performance

Bitmap fonts render faster than vector fonts in most game engines.

Frequently Asked Questions

What image formats are supported?

The tool supports PNG, JPG, and GIF formats. PNG is recommended for best quality with transparency.

How should my font image be organized?

Your font image should contain all characters in a grid layout, with each character occupying the same width and height.

Can I use this tool for non-English characters?

Yes! Use the "Custom Characters" option to specify any Unicode characters your font includes.

Which game engines are supported?

The tool exports standard JSON that can be used with any engine. We also provide specific export options for Phaser.

Is there a limit to font size?

No, but very large fonts may not preview well. The tool works best with fonts up to 128px in character size.