R8
R8: A strong free build-time choice for Android and Java projects needing practical obfuscation. Ranked #31 of 34 in Code Obfuscation Software by our editors (6.2/10); pricing: Open source; best for free Android and Java build-time obfuscation.
At a glance
- Editor score6.2 / 10
- PricingOpen source
- Best forFree Android and Java build-time obfuscation
- Paid fromFree
- Facts checked21 Sep 2026

Where it wins
- Shrinks, optimizes, and obfuscates Java and Android programs
- Produces Android DEX and optimized Java class-file output
- Supports keep rules, Gradle integration, and stack-trace retracing
Where it doesn't
- Does not provide control-flow obfuscation
- Does not include string encryption or anti-tamper protection
- Self-hosted command-line tooling requires build-system ownership
Our verdict on R8
R8 is an open-source whole-program optimizing compiler for Java and Android applications. It is designed for developers who want build-time code shrinking, optimization, identifier minification, and obfuscation without a hosted commercial service. R8 accepts Java class files and can produce optimized Android DEX files or Java class files, making it relevant to Android applications and Java projects that need compact, transformed build output.
Its strongest fit is the Android build ecosystem. R8 is embedded in the Android Gradle Plugin and is also distributed as a command-line JAR through Google Maven. ProGuard-format configuration files provide keep rules and entry-point configuration, helping developers control which code remains available during shrinking and optimization. Mapping-based stack-trace retracing through the companion Retrace tool adds a practical path for interpreting obfuscated stack traces after deployment. These capabilities make R8 a focused choice for teams managing code protection as part of an existing Java or Android build process.
R8 is narrower than code-obfuscation products that include control-flow transformation, string encryption, or anti-tamper protection. Its deployment model is self-hosted, so teams remain responsible for incorporating the JAR or Android Gradle Plugin integration into their build workflow. Developers should choose R8 when open-source, build-time shrinking and identifier obfuscation are the priority, particularly for Android DEX output or Java class files. Teams seeking broader defensive obfuscation features or a hosted service should consider an alternative with those capabilities.
Your product? Our editors can test R8 in depth and publish a review, labelled as paid · from $149/mo →
R8 pricing
R8 fact sheet
| Free plan | Not verified |
|---|---|
| Paid from | Free |
| Supported targets | Android DEX; Java class files |
| Anti-tamper controls | Not verified |
| Control-flow obfuscation | Not verified |
| String encryption | Not verified |
| Deployment model | Self_hosted |
| Build integration | Cli |
| Deployment | Self-hosted |
| Support | Email, Docs |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Pricing | Open source |
| Website | r8.googlesource.com |
| Facts checked | 21 Sep 2026 |
Alternatives to R8
- ByteHide ShieldBroad application protection across .NET, web, Android, and iOS with a free plan.9.4
- JscramblerA focused JavaScript protection suite for teams securing browser and Node.js applications.9.2
- DotfuscatorA broad .NET protection toolkit with a free personal-use entry point and quote-based paid plans.9.0
Used R8? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used R8 for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
R8 is listed in our Code Obfuscation Software directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/r8/"><img src="https://www.itechguides.com/best/badge/r8.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update


