Convert apk to jar

Convert APK to JAR

APK files can be decompiled to JAR for inspection, but not cleanly converted.

Convert APK files online

We don’t have a dedicated online converter for APK to JAR yet, but you can convert APK files online to these formats:

How to convert apk to jar file

Apk to jar file conversion

Direct conversion from .apk to .jar is not possible. An APK is an Android application package, while a JAR is a Java archive. They are different formats with different purposes, so there is no reliable one-step conversion that turns an Android app into a normal, runnable Java archive.

What you can do instead is extract and decompile the APK to inspect its contents. An APK usually contains .dex bytecode, resources, and a manifest file. If your goal is code analysis, you can convert the DEX bytecode to a .jar file for viewing in Java decompilers, but the result is typically not a fully rebuildable or runnable original Java project.

A common workflow is:

  1. Use dex2jar to convert classes.dex into a .jar file.
  2. Open the resulting JAR in a Java decompiler such as JD-GUI, CFR, or FernFlower to inspect the decompiled source.

Important: this process is mainly for code inspection. Android apps often use obfuscation, multiple DEX files, native libraries, and Android-specific APIs, so the decompiled output may be incomplete or difficult to read. Resources such as layouts, images, and the manifest are not converted into a standard Java source project by dex2jar.

If you need to examine the APK contents directly, you can also unpack it with archive tools or use Android reverse-engineering tools such as apktool, which is better suited for decoding resources and rebuilding APKs than for producing a true JAR.

In short: you can sometimes turn the DEX bytecode inside an APK into a JAR for decompilation, but you cannot directly and cleanly convert an APK into a normal Java archive that behaves like the original Android app.

APK vs JAR: format comparison

How the APK and JAR formats compare on the properties that matter most for this conversion.

Comparison of the APK and JAR file formats
Property .APK Android Package .JAR Java Archive
Open standard No Yes
Compression Both Both
Typical file size Medium Medium
Opens in a web browser No No
Further editing Not directly editable Limited
Metadata support Basic Basic
Plain-text readable No No
Best used for Embedding in applications Embedding in applications
Introduced 2008 1996
Developer Google Oracle (originally Sun Microsystems)
MIME type application/vnd.android.package-archive application/java-archive