Convert text to Base64 format

Encode text or bytes as standard padded Base64.

freeworks offlinenothing uploaded
ToolBase64 Encode
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

Bytes form 24-bit groups mapped to the standard alphabet, with = padding for a partial final group. Text passes through the selected byte encoding before conversion.

  • Padding preserves recoverable byte length.
  • The standard alphabet interoperates with MIME and HTTP Basic.

Worked example

Simple Text
Encode a greeting to Base64
Input
											Hello, World!
										
Output
												SGVsbG8sIFdvcmxkIQ==
											

When to use this

Basic Auth, MIME attachments, and binary fixtures encode Base64.

Edge cases

  • Unicode code points must become UTF-8 bytes first.
  • Canonical output keeps padding.
  • Standard characters are not automatically URL-safe.

References