Skip to content
SPECIFICTION
Get listed

ProGuard vs R8

ProGuard

guardsquare.com

R8

r8.googlesource.com

Side by side

FigureProGuardR8
Price fromFreeFree
Free planYesYes
Free trial——
Open source——
WindowsYes—
macOSYes—
LinuxYesYes
AndroidYes—
API—Yes
Plans published11
Spec score · Code Obfuscation Software7.7 (#20)8.0 (#11)
ObfuscationProGuard renames remaining classes, fields, and methods using short meaningless names.R8 shortens class, field, and method names to reduce DEX file size.
OptimizationThe optimizer optimizes bytecode and removes unused instructions.R8 removes unreachable code and can optimize execution through method inlining and class merging.

Plans

ProGuard

  • ProGuardFree

ProGuard pricing →

R8

  • R8Free

R8 pricing →

In their own words

ProGuard

ProGuard is a free, open-source command-line tool for shrinking Java bytecode and optimizing code. It processes Java class files by removing unused classes, fields, methods, attributes, and instructions, then renaming remaining classes, fields, and methods with short meaningless names. It also preverifies code, producing smaller and faster applications and libraries. Guardsquare describes ProGuard as suitable for Java and Kotlin apps in mobile, embedded, and desktop environments. Build setup is documented for Android Gradle, Java or Kotlin Gradle, Ant, and Maven projects, and Android's default shrinker, R8, is compatible with ProGuard configuration. ProGuard Playground lets developers experiment with and share keep rules without rebuilding an app. ProGuardCORE is a separate free, open-source library for reading, writing, analyzing, and processing Java bytecode, including Kotlin metadata. Library jars or equivalent paths must be specified as inputs, and ProGuard leaves those libraries unchanged. Code called dynamically through reflection may need to be declared as an entry point in configuration. ProGuard runs on Android, Linux, macOS, and Windows.

Visit guardsquare.com

R8

R8 has no write-up on Specifiction yet; its figures are above.

Visit r8.googlesource.com