🇺🇸 English
🇪🇸 Español
🇧🇷 Português
🇫🇷 Français
🇩🇪 Deutsch
🇮🇹 Italiano
🇨🇳 中文
🇷🇺 Русский

Base64 Encoder Online

Encode text, files, and images to Base64 instantly — UTF-8 perfect, Base64URL safe, up to 100MB, and 100% private in your browser.

? Encodes each line of text independently. Useful for multiple separate entries.
? Breaks the output into 76-character lines as defined by RFC 2045 / MIME specification.
? Replaces + with -, / with _, and removes = padding. Useful for URLs and filenames (RFC 4648).
LIVE

Encode a file to Base64

Drop your file here, or click to browse

Maximum file size: 100MB

Download encoded file
What is Base64 encoding?
Advanced options explained
Security & Privacy
Completely free
How Base64 works

Frequently Asked Questions

What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into 64 printable ASCII characters (A–Z, a–z, 0–9, +, /). It is used in JWT tokens, CSS image embedding, email attachments (MIME), API authentication, and webhooks.
Is Base64 safe for passwords?
No. Base64 is encoding, not encryption. Anyone can decode it instantly. For passwords, use bcrypt, SHA-256, Argon2, or similar hashing algorithms with a salt.
How do I convert an image to Base64?
Use our Image to Base64 converter: drag and drop your image, click Convert, and get the Base64 string instantly. Perfect for embedding in CSS, HTML, and API payloads.
Does Base64 encoding increase file size?
Yes, by approximately 33%. Three binary bytes are encoded as four ASCII characters. Use Base64 when you need binary data in text-based formats (JSON, XML, CSS), not for serving images at scale.
What is Base64URL safe encoding?
Base64URL is a variant of Base64 that replaces + with -, / with _, and removes = padding. Defined in RFC 4648 §5. Ideal for JWT tokens, URL parameters, filenames, and webhooks.

Other Tools

Base64 Decode → Image to Base64 →