yGuard - Java™ Bytecode Obfuscator and Shrinker

yGuard is a free Java bytecode obfuscator and shrinker that improves your software deployment by prohibiting unwanted access to your source code and drastically shrinking the processed Jar files at the same time.

The current yGuard version is 2.5.5.

Please refer to the requirements and changelog for details about the latest version.



yFiles for Java yEd Editor

Why Use yGuard?


The yGuard Manual is a detailed user guide which will enable you to use yGuard as an ordinary Ant task. The Change Log describes bugfixes and improvements added to new yGuard releases.


To run the yGuard software, you need JDK 1.4.x or greater and Ant 1.5.x or greater (it might be compatible with earlier versions of either software, this has not been tested, however).

Java 7 / Java 8 Compatibility

Beginning with version 2.5, yGuard supports obfuscation of Java class files that contain the invokedynamic instruction, which was introduced with the Java 7 .class file format.
JDK 7 does not contain any means of issuing this instruction, with JDK 8 it is being issued when using lambda expressions or default methods.

While yGuard does fully support obfuscating invokedynamic instructions and therefore default methods and lambda expressions, shrinking of Java class files that contain the invokedynamic instruction is not supported yet.

Download Section

yGuard 2.5.5
download page
This Zip file contains the Jar including the Ant yguard task and the library in compiled form. In addition, there is a detailed documentation regarding how to use the Ant task, as well as the license. See the documentation for example usages and documentation of yGuard.
yGuardLib 2.5.5
Library Sources
download page
This file contains the source code of the yGuard library. The library is based on the Retroguard Obfuscator (version 1.0) by Retrologic. Retroguard is distributed under the Lesser GNU Public License (LGPL), which is contained in the Zip file. It should be noted that this version is a library only and therefore it does not contain any directly executable code. Furthermore, the sources of the Ant task are not included in this distribution. Use the above Jar to obtain a fully functional Jar containing the task. If required, you can modify the library according to the LGPL and use your modified version with the yGuard distribution from the above link.

Contact yWorks

If you have any questions about us or our products, just send us a note:
Thank you!
Your message has been sent to contact@yworks.com
We are sorry,
Your request could not be sent to contact@yworks.com. Please reload the page and try again.
If the problem persists, please report the error to contact@yworks.com