All combinations

PDF + Image Polyglot

Combine a PDF document with a PNG or JPG image

PDFImage

01 · Add your files

0/2 added
01PDF File
.pdf · 50MB
02Image File
.png · 25MB

02 · Generate

Please upload both files to generate your polyglot file

Limits · PDF 50MB · Image 25MB

How to open your polyglot file
  • As Image: rename to .png or .jpg and open in any image viewer.
  • As PDF: rename to .pdf and open in any PDF viewer.
  • Note: the file works as both image and PDF depending on the extension.
  • To access different file types, simply rename the file extension (e.g. .zip, .mp4, .jpg, etc.).
  • If your computer can't open .zip files, try using the command line: unzip filename.zip
  • .mp4 files may not play in some video players, but work fine with popular ones like VLC or QuickTime Player.
  • These files are polyglots and may behave differently depending on the software used to open them.
File size limits
  • PDF50MB
  • Image25MB
  • Video100MB
  • ZIP100MB
  • HTML1MB

Highlighted formats apply to this combination. Limits are enforced in your browser, so an oversized file never leaves your machine.

Usage terms
  • Use it only for educational, research, or testing purposes.
  • Not use the output for malicious purposes, phishing, or exploiting vulnerabilities.
  • Take full responsibility for any consequences of using the generated files.

What is a PDF + Image polyglot?

A PDF + Image polyglot is one file that a PDF reader opens as a document and an image viewer opens as a picture. Neither application is being tricked or seeing a renamed file. The same bytes genuinely satisfy both the PDF specification and the PNG or JPEG specification at once.

How the formats coexist

Image formats identify themselves from a signature in the first few bytes, while PDF readers scan for the %PDF header near the start of the file and read structure from the trailer at the end. That tolerance leaves room for both structures to occupy one byte stream.

Why people build these

  • Testing whether an upload filter validates file type by extension, MIME type, or actual content
  • CTF challenges where a submitted image also has to be a readable document
  • Sending one attachment that opens sensibly whichever way the recipient's software treats it

Files are processed in memory and never stored. Generated polyglots are intended for educational, research and testing use. See privacy and terms.