Base64 Decoder


Base64 Decoder is used to decode data encoded in base64 back to it's original non-encoded form. Binary content that is encoded as Base64 is also supported. The following file types are supported - Images (PNG, GIF, JPEG), PDF, Zip. Send us a feedback if you want support for other file types.
Base64 Encoder

Input: Paste base64 encoded text below



Output: Decoded text


Base64 encoding is used to transmit binary data in an ASCII format. Typical usage is to embed image data within scripts such as CSS.

Various programming languages allow you to encode binary data (or even text) using built in APIs. For instance, in C# ToBase64String method of System.Convert class does this. This method takes a byte array as input. Typically this is some sort of binary data that cannot be transferred over the wire without corruption. However, you can also convert text into byte[] and then encode it using base64. You should question why this is needed because it is not the intended use of Base-64 encoding. In this form, you are just wasting bytes to represent your text data.

Checkout the Programming Languages section below for a list of APIs for other languages. Read more at wikipedia

Example Substitutions

ValueChar ValueChar ValueChar ValueChar
0A16Q32g48w
1B17R33h49x
2C18S34i50y
3D19T35j51z
4E20U36k520
5F21V37l531
6G22W38m542
7H23X39n553
8I24Y40o564
9J25Z41p575
10K26a42q586
11L27b43r597
12M28c44s608
13N29d45t619
14O30e46u62+
15P31f47v63/

How to do Base64 encoding in various programming languages

LanguageEncodeDecodeExampleDocumentation
C#System.Convert.ToBase64String()System.Convert.FromBase64String()ExampleDocumentation
VB .NETSystem.Convert.ToBase64String()System.Convert.FromBase64String()ExampleDocumentation
Java 8+java.util.Base64.getEncoder().encode()java.util.Base64.getDecoder().decode()ExampleDocumentation
Java 7 or lessorg.apache.commons.codec.binary.Base64.encodeBase64()org.apache.commons.codec.binary.Base64.decodeBase64()ExampleDocumentation
JavaScriptbtoa()atob()btoa() atob()Documentation
Pythonbase64.b64encode()base64.b64decode()ExampleDocumentation
RubyBase64.encode64()Base64.decode64()ExampleDocumentation
Feedback