AppDevTools
AppDevTools
/
Encoders and Decoders
Base64 Encoder / Decoder

Base64 Encoder / Decoder

client

Documentation

What is Base64 encoding?

Base64 is a binary-to-text encoding representing binary data in an ASCII string format. Base64 encoding uses different 64 ASCII characters including uppercase letters A-Z, lowercase letters a-z, digits 0-9, and the special symbols + and / to represent binary data in a text format.

For example, this is a programming quote by Dennis Ritchie, the creator of the C programming language.


The only way to learn a new programming language is by writing programs in it.


The quote above is encoded to Base64 as the following. Of course, it can be decoded to the original quote otherwise.

VGhlIG9ubHkgd2F5IHRvIGxlYXJuIGEgbmV3IHByb2dyYW1taW5nIGxhbmd1YWdlIGlzIGJ5IHdyaXRpbmcgcHJvZ3JhbXMgaW4gaXQu

What are the characters used in Base64 encoding?

The characters used in Base64 encoding can be divided into four groups; i.e. uppercase, lowercase, digits, and symbols.

  • Uppercase letters - From index 0 to 25 ABCDEFGHIJKLMNOPQRSTUVWXYZ
  • Lowercase letters - From index 26 to 51 abcdefghijklmnopqrstuvwxyz
  • Digits - From index 52 to 61 0123456789
  • Symbols - From index 62 to 63 +/

This is the list of all the characters used in Base64 encoding ordered by index.

ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/

The Base64 encoding index table

The following is the Base64 encoding index table.

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

Related Tools

URL Encoder / Decoder

Encodes URL strings to comply with the URL standard or decodes URL strings to a human-friendly and more readable one.

HTML Entity Encoder / Decoder

Encodes a string to HTML entities or decodes HTML entities to their original characters. Supports named references and decimal values.

Base32 Encoder / Decoder

Encodes text to Base32 or decodes Base32 to text according to RFC 4648. Supports UTF-8.

Base58 Encoder / Decoder

Encodes either text or HEX to Base58 or decodes Base58 to text or HEX.

Base64 Image Encoder / Decoder

Encodes a binary image to Base64 or decodes Base64 to a binary image on your browser without uploading it.

JWT Decoder

Decodes a JSON Web Token (JWT) instantly to view the claims inside, such as the algorithm used to sign it and the attached data.

Share