ο»Ώ
Base64

Encode and decode Base64.

Convert text or files to and from Base64. Standard or URL-safe variant. Everything runs in your browser β€” nothing is uploaded.

Runs locally. Your text and files never leave your browser. No server, no storage, no account.

Variant
Paste any plain text. Ctrl+Enter to encode.
⚠️

Invalid Base64 β€” check the input and try again.

Result
Any file type. The result is a Base64 string you can embed or transmit as text.
Click to choose a file, or drag it here
Any file type accepted
⚠️

Invalid Base64 β€” check the input and try again.

Base64 result
How it works

Text that travels safely anywhere.

What Base64 is

Base64 encodes binary data as plain ASCII text using 64 safe characters. It's not encryption β€” it's packaging. Anyone can decode it. The value is that the result goes anywhere text goes: URLs, JSON, HTML, email headers.

Standard vs URL-safe

Standard Base64 uses + and /, which have special meaning in URLs and break query strings. URL-safe Base64 replaces them with - and _. Use URL-safe when the result will appear in a URL, JWT, or filename.

Common uses

Embedding images in CSS as data: URIs, passing binary data through JSON APIs, reading email attachments (MIME encoding), decoding JWT payloads, and encoding credentials in HTTP Basic Auth headers.