Base64 Encode

Enter text to encode in Base64 format

What can you do with this base64 encode online tool?

The Base64 encoding is the reverse process of base64 decoding.

How to use the tool

  1. Click on the load sample button. it will automatically fill the editor with an example text
  2. Click on the encode button. It will encode the message in base64 formatĀ 

Similar tools

Base64 encode functions in all programming languages

C#

public static string ToBase64String (byte[] inArray)

Dojo

dojox.encoding.base64.encode (myByteArray)

Golang

func (enc *Encoding) EncodeToString (src []byte) string

Java

public static java.lang.String encode (byte[] data)

Javascript

btoa (data)

Linux

base64 FILE

MySql

TO_BASE64 (data)

Perl

encode_base64 ($bytes, $eol)

PHP

string base64_encode (string $data)

PostgreSQL

encode (data bytea, type text)

Python

base64.b64encode (s[, altchars])

Ruby

Base64.encode64 (bin)

VB

Public Shared Function ToBase64String (inArray As Byte()) As String