Open CLASS files in your browser

One Java class, compiled for the Java virtual machine. See its methods, the Java it needs and its bytecode, right here, without running it. Nothing leaves your device.

Or drop it anywhere on this page

What you'll see

Your class opens as its fields, methods and bytecode, read without running any of it.

InvoiceExporter.class

Java 17 • 23 methods • 11 KB

  • The Java it needs • What it extends and implements
  • Fields and methods • Their types and parameters
  • Bytecode as javap -c lists it
  • Nothing in it runs • Read as data only

About CLASS

A .class file is one Java class compiled to bytecode by javac, or by Kotlin's, Scala's or Groovy's compilers, for the Java virtual machine to run. Inner classes get files of their own, like Inventory$Item.class, and apps ship their classes packed in JARs.

It starts with CAFEBABE and its class file version, which says the oldest Java that runs it: 52 is Java 8, 61 Java 17 and 65 Java 21. A constant pool of names, types and strings follows, then the class's fields, its methods with their bytecode, and attributes such as its source file's name, its line numbers and its generic signatures.

Filepeek reads it without running it: the class, what it extends and implements, its fields and methods with their types and parameters' names, the classes it uses, its strings, and each method's bytecode as javap -c lists it.

Java class file

Format

MIME type
application/java-vm
Made by
Sun Microsystems
Released
1996

Inside the file

Starts with
CAFEBABE
Version
Major and minor
Holds
One class or interface
Code
JVM bytecode

Opens in every browser

Filepeek shows a class file's fields, methods and bytecode in Chrome, Edge, Firefox and Safari. On their own, browsers download .class files.

  • YouChromeOpens through Filepeek
  • YouEdgeOpens through Filepeek
  • YouFirefoxOpens through Filepeek
  • YouSafariOpens through Filepeek

Apps that open CLASS

  • WindowsIntelliJ IDEA decompiles it • javap from the JDK lists it
  • MacIntelliJ IDEA decompiles it • javap from the JDK lists it
  • iPhone and iPadNo app opens it
  • AndroidNo app opens it

Questions

Which Java version does this class need?

Its major version says, and Filepeek names the Java: 52 is Java 8, 55 Java 11, 61 Java 17 and 65 Java 21. An older Java refuses it with an UnsupportedClassVersionError.

Can I see the source code of a .class file?

Filepeek shows its methods' signatures, its strings and the bytecode as javap -c lists it. Decompilers like CFR, Procyon or IntelliJ IDEA's write Java again from it, without its comments.

How do I open a .class file on Windows or a Mac?

No app opens it with a double click. javap from the JDK lists it in a terminal, IntelliJ IDEA decompiles it as it opens, and Filepeek shows it right here.

More application formats

All supported file types

Tell us what happened

Where the file came from helps us most

With itNever the file or its name
Thank you

Opens in a new tab

Keys

Everywhere

EXIF

Verify

License

Signature