ByteScope

Java class file file format

Compiled Java bytecode, executed by the JVM.

MIME type
application/java-vm
Extensions
.class
Category
Executables & bytecode

Magic-number signature

0x00000000CAFEBABE····'CAFEBABE' magic

About the Java class file format

A .class file holds JVM bytecode produced by the Java compiler; the version fields identify the JDK that emitted it. It shares the CA FE BA BE magic with fat Mach-O binaries — the following major-version field tells them apart.

Related formats

Have a file that might be Java class file? Identify it with the File Type Identifier — it reads the magic number locally, nothing is uploaded. Or browse all formats.