textgen.app
Switch to dark mode

Base64

Encode text to Base64 or decode it back — runs entirely in your browser.

OutputValid
SGVsbG8sIHRleHRnZW4h

Encode text to Base64 or decode Base64 back to plain text. Supports URL-safe Base64. Runs entirely in your browser.

Frequently asked questions

What is Base64 encoding?
Base64 converts binary data to an ASCII string using 64 printable characters. It is widely used to embed binary data in HTML, CSS, JSON, or email (MIME).
What is URL-safe Base64?
URL-safe Base64 replaces + with - and / with _, and omits the = padding, making the output safe to include directly in URLs without percent-encoding.
Does my data leave the browser?
No. All encoding and decoding happens locally using the built-in btoa() and atob() functions. Nothing is ever sent to a server.
Runs entirely in your browser — no text leaves your device.
© 2026 textgenAboutPrivacyTerms
We value your privacy

We use cookies to run ads and measure traffic. The tools themselves work without them. You can accept, reject, or choose what to allow.