---
title: "Detect a file type from its header"
description: "Rebuild bytes from hex and identify the format by its signature."
---

> Documentation Index
> Fetch the complete documentation index at: https://help.serialize.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Detect a file type from its header

import RecipeDoc from "../../../../components/RecipeDoc.astro";

Source: https://help.serialize.dev/recipes/binary-files/detect-file-type/index.mdx
