Skip to content
Aback Tools Logo

PDF MIME Type Checker

Verify whether a file's actual MIME type is application/pdf by reading its magic bytes - the first few bytes that every file format stores as its unique binary fingerprint. Detects PDFs renamed with a wrong extension, non-PDF files disguised as .pdf, and reports the exact PDF version for genuine PDF files. Accepts any file type, reads only 32 bytes, and runs entirely in your browser with zero server uploads.

PDF MIME Type Checker
Drop any file to verify its actual MIME type from its magic bytes - not from its file extension or browser-reported type. Detects PDF files renamed with a different extension, non-PDFs disguised as .pdf, and the exact PDF version number. Supports any file type. Zero server uploads - all analysis runs locally in your browser.

Drop any file above to verify its actual MIME type from its magic bytes.

Works on .pdf, .jpg, .docx, .exe, or anything - the tool reads the raw bytes, not the extension.

Why Use Our PDF MIME Type Checker?

Detects Renamed and Disguised Files

Our PDF MIME type checker reads the actual file bytes - not the file name. It catches PDFs renamed with a .jpg or .docx extension, and non-PDF files disguised with a .pdf extension, giving you the true MIME type regardless of what the file is called.

Secure - File Never Leaves Your Device

The PDF MIME type checker reads only the first 32 bytes of your file entirely in your browser. Your file is never uploaded to any server, never stored, and never transmitted - making it safe to check sensitive documents, executables, or any confidential file type.

Instant Results with Full Signature Report

MIME type verification completes in under a second for any file size, since only the first 32 bytes are read. The result includes the magic byte hex dump, ASCII preview, detected file type, PDF version (if applicable), and a pass/fail check for each signature criterion.

Works on Any File Type - Not Just PDFs

The PDF MIME type checker recognises JPEG, PNG, GIF, TIFF, BMP, ZIP, DOCX, XLSX, PPTX, OLE2, PostScript, GZIP, RAR, 7-Zip, MP3, MP4, XML, HTML, ELF, and PE executables - so you always know exactly what a file actually is before opening or processing it.

Common Use Cases for PDF MIME Type Checker

Verify Uploaded Files Are Genuine PDFs

When a portal or form accepts only PDF uploads, the PDF MIME type checker confirms the uploaded file has the %PDF- magic byte signature - not just a .pdf extension on a JPEG, Word document, or executable that could cause processing errors.

Debug File Type Handling in Web Apps

Web developers use the PDF MIME type checker to diagnose upload validation bugs - verifying that files rejected by a backend validator are genuinely the wrong type, and confirming that correctly-typed files pass through file type checks as expected.

Server-Side File Validation Testing

Backend engineers use the PDF MIME type checker to quickly verify test files before feeding them into upload pipelines, file storage systems, or document processing APIs - confirming the magic bytes match the expected MIME type before running automated tests.

Legal & Compliance Document Verification

Legal professionals and compliance officers use the PDF MIME type checker to confirm that archived documents are genuine PDFs before submitting to regulatory systems - preventing submission failures caused by scanned images or Word documents saved with a .pdf extension.

Security Audits and Malware Screening

Security analysts use the PDF MIME type checker to flag suspicious files - detecting executables (.exe, .dll) or scripts disguised with a .pdf extension, which is a common social-engineering technique used in phishing attacks and malware distribution.

File Format Research and Education

Developers and students learning about file formats use the PDF MIME type checker to inspect the magic bytes of any file and understand why the %PDF- header signature - not the extension - is what determines a file's true type.

Understanding PDF MIME Type Verification

What is a PDF MIME Type Checker?

A PDF MIME type checker verifies whether a file's actual binary content matches the MIME type application/pdf - regardless of what the file is named. Every file format stores a unique byte sequence at the very start of the file known as a magic number or file signature. For PDF files, this is the 5-byte sequence %PDF- (hex: 25 50 44 46 2D), which appears at offset 0. Our PDF MIME type checker reads these first bytes directly from the file in your browser and matches them against a database of known file signatures - giving you the true MIME type that any server-side validator, operating system, or security scanner would assign.

How Our PDF MIME Type Checker Works

  1. Drop Any File: The PDF MIME type checker accepts any file type. Only the first 32 bytes are read from the file - this is the minimum needed to identify all common file signatures. The rest of the file is never read, loaded, or transmitted. The tool works on files of any size from 1 byte to several gigabytes.
  2. Magic Byte Matching: The first 32 bytes are read as a hex string and compared against 20+ known file signatures (JPEG, PNG, GIF, TIFF, BMP, ZIP/DOCX/XLSX, OLE2 Office files, PostScript, GZIP, RAR, 7-Zip, MP3, MP4, XML, HTML, ELF, PE/Windows executable, and PDF itself). For PDF files, the tool also extracts the version byte to report the exact PDF version (1.0 through 2.0).
  3. Verdict and Report: The tool determines one of four verdicts: Valid PDF (content is a PDF and extension is .pdf), Not a PDF (content is not a PDF), Suspicious mismatch (PDF content with a non-.pdf extension, or a .pdf extension on non-PDF content), or Empty file. The full report shows the hex dump, ASCII preview, detected type, MIME type, and a per-criterion signature check table.

The PDF Magic Byte Signature

  • %PDF- header (5 bytes): Every valid PDF starts with the literal bytes 25 50 44 46 2D - the ASCII characters %PDF-. This is defined in the PDF specification (ISO 32000) as the required file header. Any file that does not start with these bytes is not a valid PDF.
  • PDF version byte (offset 5): The character immediately after%PDF- is the major version digit (always 1 or2), followed by a period and the minor version digit. This gives the PDF version: 1.0, 1.4, 1.7, or 2.0 - each corresponding to a different feature set in the PDF specification.
  • Extension vs. content mismatch: A file named document.pdf may not actually be a PDF - it could be a JPEG, a ZIP archive, or an executable with a renamed extension. Conversely, a genuine PDF saved as report.jpg or contract.docx is still a PDF and will have the %PDF- signature. Magic byte checking reveals the true type in both cases.
  • Why magic bytes cannot be faked without breaking the file: Adding %PDF- to the start of a non-PDF file will cause PDF readers to attempt parsing and fail - the file will appear corrupt in any PDF viewer. Legitimate PDF files always have the complete, correct PDF structure after the header bytes.

Privacy, Security & Availability

The PDF MIME type checker reads only the first 32 bytes of any file you drop - the absolute minimum required to identify the file signature. No file data is uploaded to any server, stored in any database, or transmitted over any network. The entire analysis runs client-side in your browser using the JavaScript FileReader API. This makes it safe to check any file including sensitive documents, personal files, confidential reports, and even potential malware samples (which are never executed - only their first 32 bytes are read). The tool is 100% free with no signup, no rate limits, and no file size restrictions.

Frequently Asked Questions About PDF MIME Type Checker

A MIME type (Multipurpose Internet Mail Extensions type) is a standard label that identifies the format of a file. The correct MIME type for a PDF is application/pdf. Servers, browsers, APIs, and upload portals use MIME types to decide how to handle a file - whether to open it in a PDF viewer, reject it as the wrong type, or allow it through a security filter. A file with the wrong MIME type will be rejected or mishandled even if it is renamed with the right extension.

Magic bytes (also called a file signature or file magic number) are a fixed byte sequence at the start of a file that identifies its format. Every valid PDF starts with the 5-byte sequence %PDF- (hex: 25 50 44 46 2D) at byte offset 0. This is defined in the PDF specification (ISO 32000). The PDF MIME type checker reads these bytes directly and confirms whether they match the PDF signature - regardless of the file name or extension.

Files are often renamed with a different extension by mistake, by automated systems that apply the wrong extension, or deliberately by malicious actors trying to bypass file type filters. Common cases include: scanned images saved as .pdf instead of .jpg or .tiff, Word documents exported with the wrong extension, ZIP archives renamed to .pdf to trick upload portals, and executables given a .pdf extension in phishing emails.

Yes, completely. The PDF MIME type checker reads only the first 32 bytes of your file and performs all analysis locally in your browser. No bytes beyond the first 32 are read, no file data is uploaded to any server, no data is stored, and nothing is transmitted over any network. It is safe to check sensitive documents, confidential files, and even suspected malware samples - only the magic bytes are examined, not the file content.

Yes. The PDF MIME type checker matches magic bytes against 20+ known file signatures including JPEG, PNG, GIF, TIFF, BMP, ZIP (including DOCX/XLSX/PPTX), OLE2 Microsoft Office files, PostScript, GZIP, RAR, 7-Zip, MP3, MP4, XML, HTML, Linux ELF executables, and Windows PE executables. If the file type is not in the database, it reports the hex dump and labels it as an unknown file type.

The checker detects all PDF versions from 1.0 through 2.0 (1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, and 2.0). The version is read from the byte immediately after %PDF- in the file header. PDF version 1.7 (ISO 32000-1) and PDF 2.0 (ISO 32000-2) are the most common modern versions.

The PDF MIME type checker reads only the first 32 bytes of the file. This is intentional - magic byte signatures are always located at the very start of a file (offset 0), so 32 bytes is more than enough to identify any known file format. Reading only 32 bytes means the tool works instantly on files of any size, including files larger than 10 GB, and avoids loading potentially sensitive file content into browser memory.

application/octet-stream is the generic binary MIME type used when no specific signature is matched. This means the file's first 32 bytes did not match any of the 20+ known file signatures in the checker's database. The actual file type may still be determinable by reading more bytes or by checking an extended signature database. The hex dump shown in the results can help identify the format manually.

Yes. The PDF MIME type checker is 100% free with no signup, no file upload, no file size limits, and no usage restrictions. The tool runs entirely in your browser and processes only the first 32 bytes of any file you drop on it. Use it as many times as you need with any file.