TTF to PNG Converter

See what a TrueType font looks like: a PNG specimen with its name, letters, digits and a pangram.

or drop files here

TT

TTF Format

TrueType font

A scalable font format developed by Apple and licensed to Microsoft. Its tagged tables hold glyph outlines, character mappings, metrics and naming information.

  • Scalable outlines
  • Tagged tables
  • Media type font/ttf
  • Introduced in 1991
PN

PNG Format

Portable Network Graphics

A lossless raster image format with support for transparency. It stores pixels only, so a font saved as PNG keeps its look but not its outlines.

  • Lossless compression
  • Raster pixels
  • Optional alpha
  • No installable font data

How to convert TTF to PNG

Follow these steps to convert TTF to PNG online.

    1

    Choose your TTF file, or several at once.

    2

    Wait while the converter turns each file into PNG.

    3

    Download each new PNG file. Your original file isn't changed.

What to know before converting TTF to PNG

  • The PNG is a fixed specimen: the font's name, letters, digits and a pangram at five sizes.
  • It is black on white, between 400 and 2400 pixels wide, and you cannot change the text.
  • A PNG is a picture. It cannot be installed as a font.
  • A damaged file stops with a message that it is not a font the converter can read.
  • Each font gives its own PNG.

About TTF files

What is a TTF file?

A TTF file holds a TrueType font. Apple developed TrueType and licensed the technology to Microsoft, and System 7 shipped with it in May 1991. A TrueType font describes scalable character outlines, so letters stay smooth at any size. Its data is arranged in individually tagged tables, which can hold glyph mappings, outlines, metrics and naming information. The registered media type is font/ttf.

The naming table is how a program learns a font's name, and it is where a specimen takes its heading from. A font file with a broken table or a bad offset can fail to display at all.

Programs that open TTF files

Windows, Mac and Linux

  • FontForge: opens TrueType outlines for editing, including the tables.

Windows

  • Windows Font Previewer: double-click the font to inspect it before installing.

Mac

  • Font Book: installs and validates font files.

Linux

  • GNOME Fonts: previews installed typefaces and installs downloaded .ttf files.

TTF and PNG compared

  • What they store: a TTF stores outlines, character mappings and metrics. A PNG stores a grid of pixels, losslessly compressed, with optional transparency.
  • Scaling: a font scales to any size. A PNG stays at the pixel size it was drawn.
  • Text: a font can set any words you type. A PNG shows only what was drawn into it, and it cannot be installed.
  • Use: a TTF goes into an operating system or an app. A PNG goes into a web page, a slide, a document or a review thread, so people can see a typeface without installing it.

Here is how the specimen is made. ImageMagick, compiled to WebAssembly, loads the font in your browser and draws with FreeType. The top line is the font's name, taken from its name table (the full name, or the family name if there is no full name), cut to 64 characters, and a font with no usable name is labeled "TTF font". Below it come the capital letters, the small letters, and the digits with a few punctuation marks. Five more lines repeat one familiar test sentence, each at its own size of 16, 24, 32, 48 and 64 pixels. Everything is black on white inside a 40 pixel margin. The image is only as wide as the longest line needs, between 400 and 2400 pixels. You cannot change the text. It is a specimen, not the font's outlines and not a character map. The download is named after your file with a .png ending, and the TTF itself is not changed.

Other ways to convert TTF to PNG

  • ImageMagick: run magick display-face.ttf display-face-preview.png. ImageMagick's TTF reader gives a preview image of the font.
  • Pillow (Python): load the font with ImageFont.truetype, which loads a TrueType or OpenType font file at the pixel size you give. If the file is not at the given path, Pillow may search the standard font directories for your operating system, and it raises an OSError when the file cannot be read. Create a canvas with Image.new, draw your sample with ImageDraw.text and that font, then call save with a .png name. This takes a short script, but you choose the phrase, colors and size.
  • GIMP: with the font available in the font selector, create an image, choose the Text tool, pick the font and size, type your sample and export with File > Export As, choosing PNG. The PNG holds pixels, not an editable text layer.

Problems with TTF files

  • A font that never shows up: a damaged font can fail to display. Font Book on a Mac can validate a font file.
  • Two copies conflict: installing two copies of a font can create conflicts, and Font Book can resolve duplicates.
  • It is missing in an app: a font missing from a third-party application may require that application's own troubleshooting.
  • The converter says it isn't a font: FreeType could not read the file. Check that it opens in a font previewer.
  • The converter says it has no letters to draw: the font has no glyphs for the sample lines, as can happen with an icon or symbol font. Draw your own sample with Pillow or GIMP.
  • You need the glyph outlines: a PNG cannot give them. Open the TTF in FontForge.

Frequently Asked Questions

Everything you need to know about our converter

How do I convert TTF to PNG?

What is in the PNG?

Can I type my own text or pick the size?

How wide is the PNG?

Where does the name at the top come from?

Is the PNG an installable font?

Does it show every glyph in the font?

Can I get a texture atlas or a sprite sheet of the glyphs?

Does it work with OTF fonts?

Why does it say the file isn't a font?