Skip to content

Convert APK to DEX

Extract classes.dex and multidex files from an APK with 7-Zip or unzip.

Convert APK files online

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

Want to convert APK to DEX?

Let us know. We pick the conversions to add next by how many people ask for them.

How to convert apk to dex file

Some Android analysis tools accept a standalone DEX file instead of an APK, and extracting it can reduce an application package to its executable bytecode for inspection or archiving. An APK normally already contains one or more DEX files, so this task is usually extraction rather than format conversion.

What the APK format is

An APK is an Android application package stored as a ZIP-based archive. Android Studio and Gradle build tools produce APKs containing application code, compiled resources, the manifest, assets, native libraries, certificates, and package metadata.

The executable code is usually stored in classes.dex. Multidex applications also contain classes2.dex, classes3.dex, and higher-numbered files. Android build pipelines generally generate DEX with d8; R8 can additionally shrink and optimize the code. Older projects may use dx.

What the DEX format is

DEX, or Dalvik Executable, is Android bytecode for the Dalvik and ART runtimes. A standalone DEX file is useful to tools that accept bytecode without an APK, for preserving only executable code, or for inspecting classes with tools such as baksmali or JADX.

DEX is not an installable application and does not contain the APK's resources, manifest, native libraries, assets, or signing information. It is also not Java source code. JADX can produce Java-like output for inspection, but decompilation loses comments and formatting and may not reconstruct the original control flow or types exactly.

How to extract DEX from an APK

  1. Keep an unchanged copy of the APK and scan unfamiliar files before opening or extracting them.
  2. List the package contents with unzip -l app.apk on Linux or macOS, or open the APK with 7-Zip on Windows. Renaming .apk to .zip is unnecessary because both formats use a ZIP container.
  3. Extract every entry matching classes*.dex. In a shell, create an output directory and run mkdir -p dex-output && unzip -j app.apk 'classes*.dex' -d dex-output. In 7-Zip, select the DEX entries and choose 7-Zip → Extract To.
  4. Verify that the output includes all numbered DEX files, not only classes.dex. Preserve the original filenames because multidex files together represent the application's bytecode.

7-Zip is a practical desktop option on Windows, while the standard unzip utility is sufficient on Linux and macOS. These tools extract the existing files without recompiling or recompressing the application code.

When recompilation is actually needed

If DEX code has been edited or generated from smali or other input, use the Android SDK's d8 to compile it, for example d8 --output out classes.jar when the input is a compatible JAR. Replacing DEX files inside an APK is a rebuild operation, not simple extraction; the rebuilt package must be aligned and signed before Android will install it. Dex2jar is not the correct APK-to-DEX tool: it converts DEX bytecode to Java-compatible JAR files for analysis.

Compatibility and security limitations

Extracting DEX preserves the bytecode present in the APK, but a standalone file may depend on other DEX files, resources, native libraries, or package classes. Combining multidex files into one is not a neutral conversion and can exceed DEX method-reference limits or require rebuilding with compatible dependencies and a suitable API level.

Changing any DEX file invalidates the APK's original signature when the package is rebuilt. A standalone DEX has no APK signature and cannot be installed by itself. Some protected or unusual packages may load additional code at runtime, store code outside the usual classes*.dex entries, or use split APKs; extracting the visible entries may therefore not capture all executable code.

Online APK-to-DEX converters are unnecessary for ordinary packages and are unsuitable for proprietary, signed, or untrusted files because uploading exposes application code and possibly embedded secrets. Local extraction with 7-Zip or unzip is safer and produces the required DEX files directly.

APK vs DEX: format comparison

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

Comparison of the APK and DEX file formats
Property .APK Android Package .DEX Dalvik Executable
Open standard No No
Compression Both —
Typical file size Medium Small
Opens in a web browser No No
Further editing Not directly editable Not directly editable
Metadata support Basic Basic
Plain-text readable No No
Best used for Embedding in applications Embedding in applications
Introduced 2008 2008
Developer Google Google
MIME type application/vnd.android.package-archive —

Information about file extensions and file types is provided by File-Extensions.org

The database currently does not contain any direct apk file converter links.

Additional formats for
apk file conversion

Convert to dex from
other formats

Share on social media:

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.