A file signatures list example pairs each format with an offset-zero hexadecimal prefix—for instance, PNG uses 89 50 4E 47 0D 0A 1A 0A, while a ZIP local-file header uses 50 4B 03 04.
These bytes provide evidence about a file’s likely format, which can be more useful than a filename extension because extensions are easy to rename or misreport. A prefix match is still only one signal: it does not prove that the complete file is valid, that its contents are safe, or that a container holds the application format you expected.
The File Signatures (Magic Bytes) List is a compact, source-checked reference for twelve common binary prefixes. You can search by format, extension, hexadecimal bytes, or a note such as “container,” then copy the displayed offset-zero sequence. It runs entirely in the browser and does not request, read, or upload a local file.

What a file signature identifies
A file signature, also called a magic-byte sequence, is a byte pattern associated with a particular format. Signatures are often near the beginning of a file, but “near” is not precise enough to support a testable rule. The reference used here places every signature at offset zero, meaning the first byte of the file. The comparison is therefore unambiguous: does the file begin with the listed sequence?
The entries use uppercase, space-separated hexadecimal bytes. Each two-character hex pair represents one byte, and the spaces make the sequence easier to compare with a binary or hex viewer. This notation is convenient for documentation, incident-analysis notes, and detection-rule review.
- Format identifies the expected file family or structure.
- Extension provides a familiar search term, but it is not proof of the actual type.
- Hex prefix gives the bytes to compare at the specified offset.
- Note records important context, including container ambiguity.
Treat the result as a candidate classification. A short prefix can collide with unrelated content, some formats permit leading data or version-specific headers, and a malicious file can copy the expected bytes while placing invalid or dangerous data later in the file.
A practical file signatures list example
The following selected entries show how a compact list can present exact prefixes without implying that every matching file is valid:
| Format | Common extension | Offset-zero hexadecimal prefix | What the match means |
|---|---|---|---|
| PNG | .png | 89 50 4E 47 0D 0A 1A 0A | The file begins with the PNG signature. |
| GIF87a | .gif | 47 49 46 38 37 61 | A version-specific GIF header is present. |
| GIF89a | .gif | 47 49 46 38 39 61 | A later GIF header variant is present. |
| ZIP local-file header | .zip, plus package formats | 50 4B 03 04 | A ZIP-style container is indicated, not a specific contained application format. |
| GZIP | .gz | 1F 8B | The file begins with a gzip member header; the compressed data still needs validation. |
| ELF | Often none | 7F 45 4C 46 | An ELF object or executable is indicated, but the subtype is not identified. |
| SQLite 3 | .sqlite, .sqlite3 | 53 51 4C 69 74 65 20 66 6F 72 6D 61 74 20 33 00 | The database header begins with “SQLite format 3” followed by a null byte. |
The complete reference also covers JPEG, PDF, 7-Zip, RAR 4, and RAR 5. The two GIF entries illustrate why version information matters: their bytes are similar, but the version marker differs. Copying a row gives you the exact displayed prefix; it does not validate the rest of the file or create a production-safe detector by itself.
How to compare a signature with real file bytes
Use the reference to retrieve the expected sequence, then inspect the file separately in a trusted binary view:
- Search for the expected format. Enter a format name, common extension, hexadecimal sequence, or descriptive note such as “container” in the reference list.
- Read the complete row. Confirm the format, displayed prefix, extension, and any warning. Remember that these entries are fixed at offset zero rather than intended for arbitrary positions inside a file.
- Open the file in a trusted binary or hex viewer. The reference list itself does not request or inspect local files, so this inspection happens in a separate tool.
- Inspect the first bytes. Locate offset zero and compare the displayed bytes in the same order. Ensure that enough bytes are present; a short or truncated observation is not a complete match.
- Compare the full prefix. For PNG, for example, the reference sequence is 89 50 4E 47 0D 0A 1A 0A. A prefix of those bytes is weaker than the complete sequence and should not be recorded as an exact match.
- Copy the prefix only for its intended purpose. The list can copy the exact uppercase hexadecimal bytes for documentation or a tested detection rule. It does not scan the file or confirm that the rule is safe to execute.
- Validate the complete structure. Pass the candidate to a maintained, format-specific parser. For a ZIP-based document or archive, inspect the package internals rather than stopping at the container header.
Why a ZIP match needs another identification step
The ZIP local-file header appears in ordinary ZIP archives and in package-based formats such as Office Open XML documents, including DOCX and XLSX, as well as Java JAR archives, EPUB files, and other packages. Consequently, 50 4B 03 04 cannot uniquely identify a downloadable ZIP file or determine which application format is inside.
A robust ZIP-aware detector should inspect the information required by the expected format:
- Check for required internal paths and expected package entries.
- Review metadata, relationships, and content types when the target format defines them.
- Enforce decompression, entry-count, nesting, and total-size limits.
- Defend against malformed archives, path traversal, and decompression bombs.
For example, suppose a trusted hex viewer shows 50 4B 03 04 at offset zero. The direct conclusion is that the file is a candidate ZIP-style container. It is not yet proof that the file is an ordinary ZIP download, a valid DOCX document, or safe content. The next check is structural parsing, followed by format-specific package inspection and appropriate security controls.
Using a match in a detection workflow
A practical detector should use the prefix to select candidates, not to authorize them automatically. Require an exact byte sequence at offset zero, reject input that is too short to contain the complete prefix, and then invoke a maintained parser for the candidate format. Never authorize an upload solely because its prefix matches a list.
- Apply an allowlist of accepted formats and enforce explicit size and structural limits.
- Rename accepted files server-side instead of relying on the submitted name or extension.
- Isolate stored files, block active content where appropriate, and serve downloads with safe headers.
- Use antivirus or sandbox analysis when the workflow handles higher-risk content.
- Reject truncated inputs and test malformed, polyglot, oversized, and nested samples.
- Record the observed bytes, parser verdict, and detection-rule version so a prefix match remains distinguishable from a fully validated file.
General-purpose libmagic rules can evaluate byte sequences at other offsets, indirect offsets, masks, numeric endianness, strings, and nested conditions. The compact reference intentionally does not reproduce those rules. For broader implementations, consult current upstream documentation such as the file command magic database, along with the relevant format specification. The SEARCH GCK File Signatures reference provides another lookup point, but critical production rules should still be verified against current sources.
If you are choosing between a browser-based lookup and command-line inspection, the comparison in File Signatures List: Command Line vs Online explains the practical distinction.
Where this compact list stops
The tool covers twelve common, fixed offset-zero prefixes. It does not include executable subtypes, media codecs, disk images, fonts, mail formats, or every archive variation. Because it is a reference rather than a file scanner, it cannot inspect uploads, evaluate a file at another offset, or decide whether the remaining structure is valid.
Its browser-only operation also means searches and copies stay in the current tab, no account is required, and no dependency is added. Use it to find a documented prefix, compare that prefix with bytes from a trusted binary view, and prepare a carefully scoped detection rule. Standards and implementations can evolve, so verify critical rules against current upstream documentation and maintain regression samples containing both valid files and adversarial near-matches.
If you're weighing options, HTTP Status Codes Example: 200, 404, 500 and 429 covers this in detail.