Loading…
Free online Base64 encoder and decoder with URL-safe mode. Use as default for text; for split encode-only/decode-only URLs use base64-encoder/base64-decoder (aliases), for image files use image-to-base64. Input: text ≤10MB. Returns Base64 string or decoded text + error location. Convert instantly in your browser.
Base64 Encoder/Decoder is loading — interactive editor will appear here. Use examples below to try instantly once loaded.
Press ? for keyboard shortcuts
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.
This tool is part of the DevStackIO platform — a collection of free online developer tools from DevStackIO. Browse more free developer resources on DevStackIO.
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)What is the difference between Base64 and base64url?
Base64 uses '+/=' which are not URL-safe. base64url uses '-_' and strips padding.
Can I encode images with this tool?
Yes, drag-and-drop any image file. The tool encodes it and optionally adds data URI header.
How do I process multiple files at once?
Switch to 'Batch' mode and paste multiple values or use multi-file upload.
Does the tool support streaming for large files?
Files are processed in memory. For >50 MB, use a command-line tool.
Authoritative specifications, standards, and in-depth reading for Base64 Encoder/Decoder.
Tool is loading — interactive editor will appear here. Use examples below to try instantly once loaded.
Convert images to Base64 encoded strings online for free. Use for image files only; for text use base64. Input: image file ≤10MB. Returns Base64 data URI for HTML/CSS/JS. Generate Base64 data URIs for embedding images directly in HTML, CSS, and JavaScript code.
Free online URL encoder and decoder for query strings and components. Private client-side conversion.
Encode/decode HTML entities (& < >). Use for HTML text; for URLs use url-encoder. Input: text ≤10MB. Returns encoded/decoded text. 100% client-side.
Convert text to binary and back. Use for binary strings; for other bases use base-converter. Input: text ≤10MB. Returns 0/1 string or decoded text. 100% client-side.
Convert text to hex and back. Use for hex encoding; for hashes use hash-generator. Input: text ≤10MB. Returns hex string or decoded text. 100% client-side.
Escape/unescape JS strings. Use for code literals; for JSON strings use json-escaper. Input: text ≤10MB. Returns escaped text. 100% client-side.
Translate text to Morse code and back. Use for learning or signaling. Input: text ≤10MB. Returns dots/dashes or decoded text. 100% client-side.
Decode and inspect JWT header, payload and expiry locally. Debug tokens securely in browser.