Base64 Encoder


Base64 Encoder is used to encode binary data or text with control characters for transmission over mediums that cannot handle non printable characters. The encoded text is comprised of only ASCII characters.


Base64 Decoder
Paste plain text below



Settings

Base64 encoded 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. Read more at wikipedia
Split Long Lines
When this option is set, lines are wrapped after 75 characters for better viewing. However, the Copy Output button still copies the text as a single line so that it can be used directly with other tools.
Split Long Lines On
TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eX
Blc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3M=
Split Long Lines Off
TG9yZW0gSXBzdW0gaXMgc2ltcGx5IGR1bW15IHRleHQgb2YgdGhlIHByaW50aW5nIGFuZCB0eXBlc2V0dGluZyBpbmR1c3RyeS4gTG9yZW0gSXBzdW0gaGFzIGJlZW4gdGhlIGluZHVzdHJ5J3M=

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