Watch    52
 Star    417
 Fork    229

Apache Commons Codec

GitHub Actions Status Coverage Status Maven Central Javadocs CodeQL OpenSSF Scorecard

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 Apache Commons Codec homepage. The Javadoc can be browsed. Questions related to the usage of Apache Commons Codec should be posted to the [user mailing list][ml].

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 Pull Requests 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.

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.


This code is under the Apache License v2.

See the NOTICE.txt file for required notices and attributions.


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

Additional Resources

Apache Commons Components

Component GitHub Repository Apache Homepage
Apache Commons BCEL commons-bcel commons-bcel
Apache Commons Beanutils commons-beanutils commons-beanutils
Apache Commons BSF commons-bsf commons-bsf
Apache Commons Build-plugin commons-build-plugin commons-build-plugin
Apache Commons Chain commons-chain commons-chain
Apache Commons CLI commons-cli commons-cli
Apache Commons Codec commons-codec commons-codec
Apache Commons Collections commons-collections commons-collections
Apache Commons Compress commons-compress commons-compress
Apache Commons Configuration commons-configuration commons-configuration
Apache Commons Crypto commons-crypto commons-crypto
Apache Commons CSV commons-csv commons-csv
Apache Commons Daemon commons-daemon commons-daemon
Apache Commons DBCP commons-dbcp commons-dbcp
Apache Commons Dbutils commons-dbutils commons-dbutils
Apache Commons Digester commons-digester commons-digester
Apache Commons Email commons-email commons-email
Apache Commons Exec commons-exec commons-exec
Apache Commons Fileupload commons-fileupload commons-fileupload
Apache Commons Functor commons-functor commons-functor
Apache Commons Geometry commons-geometry commons-geometry
Apache Commons Graph commons-graph commons-graph
Apache Commons Imaging commons-imaging commons-imaging
Apache Commons IO commons-io commons-io
Apache Commons JCI commons-jci commons-jci
Apache Commons JCS commons-jcs commons-jcs
Apache Commons Jelly commons-jelly commons-jelly
Apache Commons Jexl commons-jexl commons-jexl
Apache Commons Jxpath commons-jxpath commons-jxpath
Apache Commons Lang commons-lang commons-lang
Apache Commons Logging commons-logging commons-logging
Apache Commons Math commons-math commons-math
Apache Commons Net commons-net commons-net
Apache Commons Numbers commons-numbers commons-numbers
Apache Commons Parent commons-parent commons-parent
Apache Commons Pool commons-pool commons-pool
Apache Commons Proxy commons-proxy commons-proxy
Apache Commons RDF commons-rdf commons-rdf
Apache Commons Release-plugin commons-release-plugin commons-release-plugin
Apache Commons Rng commons-rng commons-rng
Apache Commons Scxml commons-scxml commons-scxml
Apache Commons Signing commons-signing commons-signing
Apache Commons Skin commons-skin commons-skin
Apache Commons Statistics commons-statistics commons-statistics
Apache Commons Testing commons-testing commons-testing
Apache Commons Text commons-text commons-text
Apache Commons Validator commons-validator commons-validator
Apache Commons VFS commons-vfs commons-vfs
Apache Commons Weaver commons-weaver commons-weaver
Apache Commons Codec
最后更新于  8 days ago