Base64Coder - an open-source Base64 encoder/decoder in Java

Base64Coder is a fast and compact Base64 encoder/decoder class.

There is no Base64 encoder/decoder in the standard Java SDK class library up to Java 7. The undocumented classes sun.misc.BASE64Encoder and sun.misc.BASE64Decoder should not be used (explanation). Since Java 8 there is now java.util.Base64.

API documentation: Base64Coder.html
Source code:
Sample and test programs:
Download full package:
Source code repository: GitHub
Maven repository:
Fedora package: Fedora Koji Build System
Related work 1: ObjectiveC version for the iPhone, by Sebastian Stenzel.
Related work 2: Visual Basic version
Related work 3: C# version ported by Mārtiņš Andersons: Base64Coder.cs TestBase64Coder.cs

Author: Christian d'Heureuse (,