File types / Data & fonts

.ttf file

TrueType / OpenType font

Extensions
.ttf, .otf
MIME type
font/ttf
Signature
00 01 00 00at byte offset 0
Safety
Low risk

What is a .ttf file?

TTF is the common desktop font format. OpenType (.otf) is a closely related format.

TrueType fonts start 00 01 00 00; OpenType fonts with PostScript outlines start with the letters OTTO.

Used for: Fonts installed on a computer.

How can I tell if a file is really a TTF?

Read its first bytes rather than trusting the name. A genuine TTF file has the signature 00 01 00 00 at byte offset 0. OTF files with CFF outlines start 4F 54 54 4F (OTTO). The File Identity tool reads these bytes in your browser, so the file is never uploaded.

To compare the name against the content, use Validate Extension. To see the raw bytes, use Safe File Preview.

Is a .ttf file safe to open?

Fonts are data, but only install ones from trusted sources.

Easy to confuse

The same four starting bytes can occur in other files, so the signature is a hint, not proof.

Related file types