yGuard review
A practical Java build tool for renaming, shrinking, and resource adjustment.
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
yGuard is a free, open-source Java bytecode obfuscator and code shrinker from yWorks GmbH. It processes compiled Java class files and is designed for developers who need to make Java applications more difficult to reverse engineer while fitting obfuscation into an existing build process. Its supported targets are Java bytecode and stable JDK versions up to Java 21. The desktop tool is delivered as an Ant task and can also integrate with Maven and Gradle.
Its strongest area is configurable build-time processing. yGuard can rename packages, classes, methods, and fields, while dependency analysis removes unreachable code to reduce archive size. XML-based configuration lets teams define code entities for processing. The tool also supports textual resource-file renaming and adjustment, line-number table scrambling and unscrambling, and XML patch generation for deployed obfuscated applications. These capabilities make it suitable for Java projects that need repeatable obfuscation and shrinking alongside compilation and packaging.
The scope is narrower than a full protection suite. yGuard does not provide control-flow obfuscation, string encryption, or anti-tamper protection, so teams seeking those defenses should consider a product with those capabilities. It is a good fit for Java developers who prioritize an open-source tool with Ant, Maven, and Gradle support, configurable XML rules, and archive-size reduction. It is less suitable for organizations that require broader runtime protection or multiple obfuscation layers beyond name transformation, shrinking, resource handling, and line-number processing.
yGuard pros and cons
- Where it wins
- Free, open-source Java bytecode obfuscation and shrinking
- Ant, Maven, and Gradle integration
- XML rules, resource adjustment, and patch generation
- Where it doesn't
- No control-flow obfuscation
- No string encryption
- No anti-tamper protection
yGuard fact sheet, pricing and score →
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
