Toolvito

JAR File Viewer

Choose a .jar, .war, .ear or .aar file, or a single .class file. You see every file inside it, the manifest, the Maven coordinates and which Java version it was built for, and you can open each class to read its methods and bytecode. The file is read in your browser and never uploaded, and nothing in it is run.

Open a jar

How to look inside a jar

  1. Choose the file, or press “Try the sample jar”.
  2. Read the summary: the Java version, the Main-Class and the Maven version.
  3. Find a file in the list and press its name to open it. A class shows its fields and methods; tick “Show the bytecode” for the instructions. A jar inside the jar opens the same way.
  4. Download any file from the jar, or the class as text.

What the class view shows

  • It is the same text the JDK tool javap prints with -c -p: the class with its modifiers, generic types and interfaces, every field and method (also private ones), and for each method its bytecode with the constant each instruction uses.
  • The Java version comes from the class file version: 52 is Java 8, 55 is Java 11, 61 is Java 17, 65 is Java 21. A jar is only as new as its newest class.
  • It does not turn the bytecode back into Java source code (decompile): method bodies are shown as instructions.

Manifest and metadata

  • The manifest (META-INF/MANIFEST.MF) is shown as a table: Main-Class is the class that java -jar starts, Class-Path lists other jars it needs, Multi-Release: true means META-INF/versions holds classes for newer Java versions.
  • Files named META-INF/*.SF and *.RSA, *.DSA or *.EC mean the jar is signed. The signature is not checked here.
  • Maven puts the group, artifact and version of the build in META-INF/maven/…/pom.properties.

Limits you should know

  • Jars of more than 4 GB or 65,535 entries (ZIP64) and encrypted entries cannot be opened here. One file inside is shown up to 32 MB.
  • Obfuscated classes show their short or odd names as they are.

Related tools