Skip to content

Base64

Base64 is a data encoding method that represents binary data in text format. Each sequence of six bits is represented by one ASCII character from a set of 64 possible characters. The term Base64 originates from a particular MIME encoding.

Source content checked . English translation published 2026-10-27.

In business automation

Base64 converts bytes into text that can be transferred in JSON, email, or an HTTP header. In automation, it is used for small files, images, and encoded secrets, not for encryption.

Examples

These examples illustrate a possible workflow. Adapt the connections and rules to your own systems.

Attaching a small file to a webhook

A form uploads a short receipt. The workflow encodes it in Base64 and sends it in a JSON body to the storage service. The destination decodes it back into a file. A file that is too large is sent as a link instead of in the request body.

Relevant tools

n8n
There are nodes for encoding and decoding Base64 when working with a file or HTTP; check the body size before attaching large files.

What to check

  • Base64 encoding does not hide data; anyone who sees the text can decode the file.

Related terms

Sources