Convert Base64 encoded strings back to plain text

Decode standard Base64 into the original bytes or text.

freeworks offlinenothing uploaded
ToolBase64 Decode
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

Four Base64 characters represent 24 bits as four 6-bit values; decoding recombines them into up to three bytes and handles = padding in the final group. The standard alphabet uses plus and slash.

  • Padding makes final length explicit.
  • Unpadded input can be accepted when length is known.

Worked example

Simple Text
Decode a Base64 string back to plain text
Input
											SGVsbG8sIFdvcmxkIQ==
										
Output
												Hello, World!
											

When to use this

Basic Auth, MIME attachments, and data URLs decode Base64.

Edge cases

  • URL-safe - and _ need an alphabet switch.
  • Bad padding can leave an incomplete final group.
  • Decoded bytes are not guaranteed UTF-8 text.

References