MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 4 as of 2022-04-12 20:07:55
  • MagicNumbers

Magic Numbers

Magic numbers might help identify file types

  • https://en.wikipedia.org/wiki/List_of_file_signatures

  • https://gist.github.com/leommoore/f9e57ba2aa4bf197ebc5

File type

Hex signature in start of file

MIME type

jpeg

ff d8 ff

image/jpeg

png

89 50 4e 47

image/png

bz2

42 5A 68

application/octet-stream

gif

47 49 46 38 37 61

image/gif

gif

47 49 46 38 39 61

image/gif

zip jar apk docx ipa pptx xlsx

50 4B 03 04

application/octet-stream

Java class

CA FE BA BE

application/octet-stream

tar

75 73 74 61 72

application/octet-stream

gzip

1F 8B

application/octet-stream

  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01