plain/devtools home

Base64 to text

Paste the string into the tool above, choose Decode and the text appears. SGVsbG8sIFdvcmxkIQ== decodes to Hello, World!. Base64 is an encoding, not encryption, so anyone can decode it.

Last reviewed 2026-11-04.

base64samplesCtrl↵ run · s sample · c copy

never leaves your browser

Worked examples

Base64Text
SGVsbG8sIFdvcmxkIQ==Hello, World!
Y2Fmw6k=café
SGVsbG8Hello (padding is optional here)

Is it valid Base64

  • Only A-Z a-z 0-9 + / and trailing = padding are allowed. The URL-safe form uses - and _ instead; see Base64URL vs Base64.
  • Length is a multiple of 4 with padding. SGVsbG8 (no padding) is accepted by most decoders.
  • A character such as ! makes it invalid. The tool says so instead of guessing.

Garbage after decoding

If the output is unreadable, the bytes are probably not text, for example an image or a compressed file. The tool then shows the hex bytes. Text is decoded as UTF-8, so é is two bytes (Y2Fmw6k= is café).

In code

$ atob('SGVsbG8=')                          // 'Hello' (Latin-1 only)
Buffer.from('SGVsbG8=', 'base64').toString()  // 'Hello' (Node, UTF-8)

Running this on a server

Base64 appears in API payloads and tokens. The hosting guide compares places to run a small API.

Frequently asked questions

Is Base64 encryption?

No. It is a reversible encoding with no key. Do not use it to hide secrets.

Why does it end with =?

Padding to a multiple of 4 characters. One or two = signs mark how many bytes the last group held.

Is my data sent anywhere?

No. Decoding runs in your browser.

Sources

Related

esc
↑↓ move↵ open? all shortcuts

Keyboard shortcuts

Cmd or Ctrl shortcuts always work.
Everywhere
Everywhere
Open the command palette
CtrlK
Open the palette (outside a text field)
/
Show these shortcuts
?
Toggle light and dark theme
t
Go home
gh
Go to all tools
gt
On a tool page
On a tool page
Run the main action
Ctrl↵
Copy the output
c
Load the next sample
s
Focus the input
i
Leave a text field
Esc
Previous or next tool
[]
In the palette
In the palette
Move the selection
↑↓
Open the selected item
↵
Close
Esc