Base64 Encode & Decode
Encode text to Base64, decode Base64 to text, and convert binary files to Base64 data URLs with optional URL-safe formatting.
Base64 Text Encoder
Encode UTF-8 plain text strings into standard or URL-safe Base64
How to use Base64 Encode & Decode
Select your operation mode: Encode Text to Base64, Decode Base64 to Text, or File to Base64 Data URL.
Type or paste your input string into the editor, or drop a binary file into the upload zone.
Optionally enable the URL-Safe Base64 toggle to replace + and / with - and _ without padding.
Copy the resulting Base64 string or decoded plaintext to your clipboard.
Features
Text Encoding & Decoding
Convert UTF-8 text strings to Base64 encoding and decode Base64 strings back to readable text.
Binary File to Data URL
Encode images, documents, and files into Base64 data URLs for inline web embedding.
URL-Safe Base64 Mode
Supports RFC 4648 URL-safe alphabet substitution (- and _ without padding) for web tokens and URLs.
Zero Server Uploads
All text and file operations run in client memory via FileReader and browser decoding APIs.
Related Developer Tools
URL Encoder & Decoder
Encode and decode full URLs, query parameters, and special characters with URI component percent-encoding.
JWT Decoder & Token Inspector
Decode and inspect JSON Web Tokens (JWT) payload, header, claims, and expiry in real-time.
Hash & HMAC Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 cryptographic hashes with optional HMAC authentication for SHA algorithms.
cURL to Code Generator
Convert cURL HTTP commands to JavaScript Fetch, Axios, Python Requests, Go, and Node.js code.