Loading...
Loading...
We use cookies to enhance your experience, analyze site usage, and serve personalized content. By clicking "Accept All," you consent to our use of cookies. See our Cookie Policy and Privacy Policy for details.
Encode and decode Base64 strings online free
Drag & drop a file or use Upload File button
Encodes and decodes Base64 data with automatic input detection (plain text vs. Base64 string). Supports standard Base64, base64url (URL-safe), data URI generation for images/media, and four character encodings (UTF-8, ASCII, UTF-16LE, UTF-16BE). Includes file drag-and-drop, batch mode for processing multiple items, and real-time character count comparison.
Base64 encoding is essential for embedding binary data in text-based formats like JSON, HTML, CSS, and URLs. A reliable multi-format tool handles edge cases like URL safety, encoding variants, and batch operations without switching between utilities.
Web developers, API designers, software engineers working with binary data transmission, and anyone embedding images or files in text-based formats.
Paste your input text or drag-and-drop a file — auto-detects if input is plain text (to encode) or Base64 (to decode)
Select character encoding: UTF-8 (default), ASCII, UTF-16LE, or UTF-16BE
Choose output format: Standard Base64, Base64 URL, or Data URI (prepends correct MIME type)
Click 'Encode' or 'Decode' — result appears with size comparison showing input vs. output byte count
For batch mode, switch to 'Batch' tab and enter multiple values (one per line) — each processed independently
Copy individual results or entire batch output, or use 'Download' to save as a text file
Input: 'Hello World' | Encode | UTF-8 | Standard => Output: 'SGVsbG8gV29ybGQ=' (standard Base64 with padding)Input: 'SGVsbG8gV29ybGQ' | Decode | Auto-detect => Output: 'Hello World' (decoded without padding)Base64 uses '+/=' which are not URL-safe. base64url uses '-_' and strips padding.
Yes, drag-and-drop any image file. The tool encodes it and optionally adds data URI header.
Switch to 'Batch' mode and paste multiple values or use multi-file upload.
Files are processed in memory. For >50 MB, use a command-line tool.
Encode and decode URLs and URL components online free
Convert images to Base64 encoded strings for embedding in HTML/CSS
Escape and unescape strings for JavaScript, JSON, HTML, URL, and more
Encode and decode HTML entities for web development
Dive deeper with our comprehensive guides and tutorials.