Subscribe

Base64 Encode / Decode

Use the tools below to Base64-encode or decode text, images, and files. To ensure data safety, the encoding and decoding are performed within the browser without being sent across the internet. This is designed for DIY planning and DIY decisions in everyday projects.

Text to Encode or Decode

Enter text or Base64 content, choose action and character mode, then process the result. Related: Unit Conversion Calculator and Roman Numeral Converter.

Ready.

Base64 Encode / Decode an Image or File

Use this tool to Base64-encode or decode images and files. For text output, the result appears below with copy and download options. For image and binary output, a generated file will download directly. Large files may require more processing time.

Ready.

What Base64 Encoding and Decoding Does

Base64 encoding and decoding converts binary data to and from text format. Some systems and transport channels handle text more reliably than raw binary, so Base64 is commonly used to move images, files, and other binary content in text-safe contexts.

The Base64 character set contains uppercase A–Z, lowercase a–z, digits 0–9, and two additional characters (+ and /). The symbol = is used as padding in many results.

Base64 ValueCharacterBase64 ValueCharacterBase64 ValueCharacterBase64 ValueCharacter
0A16Q32g48w
1B17R33h49x
2C18S34i50y
3D19T35j51z
4E20U36k520
5F21V37l531
6G22W38m542
7H23X39n553
8I24Y40o564
9J25Z41p575
10K26a42q586
11L27b43r597
12M28c44s608
13N29d45t619
14O30e46u62+
15P31f47v63/
Modern computers use 8-bit bytes, while Base64 uses 6-bit values, so Base64 output is usually about 4/3 (~1.33×) the size of original input data.

Examples

DogRG9n

DoRG8= (padding)

DogsRG9ncw== (padding)

Base64 is commonly used for email attachments, JSON/XML payloads, and embedding binary in text contexts, for example: <img src="data:image/png;base64,..." />