Apache Commons Codec

Clone this repo:
  1. f0028e1 [CODEC-224] Add convenience API org.apache.commons.codec.binary.Hex.encodeHexString(byte[]|ByteBuffer, boolean). by Gary D. Gregory · 1 year, 11 months ago trunk
  2. cc27943 Add missing (direct usage) tests. by Gary D. Gregory · 1 year, 11 months ago
  3. 337ed8b Remove unused field. by Gary D. Gregory · 2 years ago
  4. db6f9bf Remove unused field. by Gary D. Gregory · 2 years ago
  5. 1f799f6 Remove unused exceptions. by Gary D. Gregory · 2 years ago

Apache Commons Codec

The Apache Commons Codec package contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. In addition to these widely used encoders and decoders, the codec package also maintains a collection of phonetic encoding utilities.


More information can be found on the homepage. The JavaDoc can be browsed. Questions related to the usage of Apache Commons Codec should be posted to the user mailing list.

Where can I get the latest release?

You can download source and binaries from our download page.

Alternatively you can pull it from the central Maven repositories:



We accept PRs via github. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:

  • No tabs! Please use spaces for indentation.
  • Respect the code style.
  • Create minimal diffs - disable on save actions like reformat source code or organize imports. If you feel the source code should be reformatted create a separate PR for this change.
  • Provide JUnit tests for your changes and make sure your changes don't break any existing tests by running mvn clean test.

If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.


Code is under the Apache Licence v2.


You like Apache Commons Codec? Then donate back to the ASF to support the development.

Additional Resources