Base64 Tools
to anything.
A suite of free browser-based developer tools to export SQL query results into CSV, JSON, XML, YAML, HTML and more.
Image to Base64
Convert image files to Base64 string.
Base64 to Image
Convert Base64 back into image file.
PNG to Base64
Convert PNG images to Base64 format.
JPG to Base64
Convert JPG/JPEG images to Base64 string.
JSON to Base64
Encode JSON to Base64 string.
XML to Base64
Convert XML data to Base64.
YAML to Base64
Convert YAML text to Base64 format.
Base64 to JSON
Decode Base64 string into JSON.
Base64 to XML
Decode Base64 data to XML format.
Base64 to YAML
Decode Base64 into YAML text.
CSV to Base64
Encode CSV file/text to Base64.
Base64 to CSV
Decode Base64 string to CSV file.
TSV to Base64
Convert TSV to Base64.
Base64 to TSV
Decode Base64 to TSV.
Binary to Base64
Convert binary text to Base64.
Base64 to Binary
Decode Base64 into binary string.
Hex to Base64
Convert Hex values to Base64.
Base64 to Hex
Decode Base64 to Hex string.
Octal to Base64
Convert Octal values to Base64.
Base64 to Octal
Decode Base64 string to octal.
HTML to Base64
Encode HTML to Base64 string.
Base64 to HTML
Decode Base64 string to HTML.
CSS to base64
Convert CSS to Base64.
Base64 to CSS
Decode Base64 into CSS.
JavaScript to Base64
Encode JavaScript code to Base64.
Base64 to JavaScript
Decode Base64 to JavaScript text.
ASCII to Base64
Convert ASCII text to Base64.
Base64 to ASCII
Decode Base64 to ASCII.
Text to Base64
Convert plain text to Base64.
Base64 to Text
Decode Base64 to plain text.
SVG to Base64
Encode SVG to Base64.
BMP to Base64
Convert BMP image to Base64.
GIF to Base64
Convert GIF images to Base64.
WebP to Base64
Convert WebP to Base64.
AVIF to Base64
Convert AVIF image to Base64.
APNG to Base64
Convert APNG image to Base64.
Free suite of 36 Base64 tools: encode/decode images (PNG, JPG, GIF, WebP, AVIF, APNG, BMP, SVG), JSON, XML, CSV, HTML, CSS, JavaScript, Hex, Octal, Binary, ASCII. 100% browser-based.
Base64 Tools – 36 Free Online Base64 Encoders & Decoders
Base64 is the most widely used encoding scheme for converting binary data into ASCII text. It powers email attachments, data URIs, JSON web tokens, API payloads, and countless other applications. The Base64 Tools suite provides 36 powerful, browser-based utilities to encode or decode images, JSON, XML, CSV, HTML, CSS, JavaScript, Hex, Octal, ASCII, and many more formats – all locally, privately, and completely free.
Why Use Base64 Tools?
Whether you're a web developer embedding images in CSS, a backend engineer encoding binary data for JSON APIs, or a security analyst decoding suspicious payloads, you need reliable Base64 conversion. Our tools handle every common use case: from simple text encoding to image conversion, from JSON/XML to hexadecimal and octal. All processing happens in your browser – no uploads, no privacy risks.
Key benefits: 36 specialized tools, local-only processing, support for all major image formats (PNG, JPG, GIF, WebP, AVIF, APNG, BMP, SVG), structured data formats (JSON, XML, YAML, CSV, TSV), code formats (HTML, CSS, JavaScript), and number systems (Hex, Octal, Binary, ASCII).
The 36 Essential Tools – Complete Reference
Image to Base64 & Reverse (8 tools)
Image to Base64 / Base64 to Image: Universal converters for any image type. Upload an image, get a Base64 data URI. Or paste Base64 and download the original image.
Format-specific converters: PNG to Base64, JPG to Base64, BMP to Base64, GIF to Base64, WebP to Base64, AVIF to Base64, APNG to Base64, SVG to Base64. Each ensures correct MIME type (image/png, image/jpeg, etc.) and optional data URI prefix.
Use cases: Embed images in HTML/CSS without extra HTTP requests, store user avatars in databases as text, generate dynamic image previews, reduce server load.
Structured Data to Base64 (8 tools)
JSON to Base64 / Base64 to JSON: Encode any valid JSON string into Base64, or decode Base64 back to formatted JSON. Perfect for embedding JSON in URLs or storing in text fields.
XML to Base64 / Base64 to XML: Convert XML documents to Base64 for safe transmission through text-only channels, or decode back to clean XML.
YAML to Base64 / Base64 to YAML: Encode YAML configurations into Base64, useful for Kubernetes secrets or CI/CD pipelines.
CSV to Base64 / Base64 to CSV: Convert tabular data (CSV) to Base64 and back. Great for data exchange in legacy systems.
TSV to Base64 / Base64 to TSV: Same for tab-separated values.
Code & Markup to Base64 (6 tools)
HTML to Base64 / Base64 to HTML: Encode entire HTML pages or fragments into Base64 for embedding in JSON or email templates.
CSS to Base64 / Base64 to CSS: Convert stylesheets to Base64 – useful for dynamic style injection or obfuscation.
JavaScript to Base64 / Base64 to JavaScript: Encode JS code into Base64 for safe transport or decode obfuscated scripts.
Number Systems & Binary (6 tools)
Hex to Base64 / Base64 to Hex: Convert hexadecimal strings (e.g., "48656C6C6F") to Base64 and vice versa. Essential for cryptography and low-level debugging.
Octal to Base64 / Base64 to Octal: Same for octal number representation.
Binary to Base64 / Base64 to Binary: Convert strings of 0s and 1s to Base64 or decode Base64 back to binary representation.
Text & ASCII (4 tools)
Text to Base64 / Base64 to Text: Encode any UTF-8 text (including emojis, accents, non-Latin scripts) to Base64. Decode Base64 back to human-readable text.
ASCII to Base64 / Base64 to ASCII: Limited to 7-bit ASCII characters. Use for legacy systems or pure ASCII data.
How to Use the Tools
Each tool follows a simple workflow:
- Select the tool – Choose the specific encoder or decoder you need (e.g., PNG to Base64, Base64 to JSON).
- Provide input – Upload a file (for images) or paste text (for JSON, XML, code, etc.).
- Convert instantly – Click the convert button. The result appears immediately.
- Copy or download – Copy the Base64 string to clipboard or download as a file (for decoders).
All conversions are local – your files and data never leave your browser.
Practical Examples
Example 1: Embedding a PNG image in CSS
Using PNG to Base64 tool:
Input: logo.png
Output: data:image/png;base64,iVBORw0KGgoAAAANS...
CSS usage: .logo { background-image: url('data:image/png;base64,iVBOR...'); }
Example 2: Sending JSON in a URL parameter
Original JSON: {"user":"john","id":123}
JSON to Base64: eyJ1c2VyIjoiam9obiIsImlkIjoxMjN9
URL-encoded: eyJ1c2VyIjoiam9obiIsImlkIjoxMjN9 (already safe)
Example 3: Decoding a Base64-encoded image from an email
Base64 string from email: /9j/4AAQSkZJRgABAQE...
Base64 to Image tool: download image.jpg
Example 4: Hex to Base64 for cryptography
Hex: 48656C6C6F20776F726C64
Base64: SGVsbG8gd29ybGQ=
Base64 Data URI Reference
When using Image to Base64, the output can be prefixed with the appropriate MIME type:
- PNG: data:image/png;base64,...
- JPG: data:image/jpeg;base64,...
- GIF: data:image/gif;base64,...
- WebP: data:image/webp;base64,...
- SVG: data:image/svg+xml;base64,...
- BMP: data:image/bmp;base64,...
- AVIF: data:image/avif;base64,...
- APNG: data:image/apng;base64,...
Privacy and Security
Unlike many online Base64 converters that upload your images and data to remote servers, our suite works entirely in your browser using JavaScript. This means:
- No data leaves your computer – perfect for proprietary code, confidential images, or personal data
- Unlimited file size (browser memory permitting)
- Works offline after initial load
- No tracking or analytics on your data content
For sensitive data like private keys, passwords, or internal documents, this local-only approach is essential.
Advanced Tips
Chaining conversions: Need to embed a JSON object that contains an image? First convert the image to Base64, then embed that string in the JSON, then encode the JSON to Base64 again. Use our tools sequentially.
Performance for large images: For images over 10 MB, encoding may take a few seconds. The browser will show a progress indicator. For huge files (100+ MB), consider splitting or using desktop tools.
Data URI limits: Some browsers have length limits for data URIs (usually around 2-4 MB for CSS, but larger for img src). For big images, prefer traditional file loading.
Detecting Base64: Base64 strings often end with = or ==, contain only A-Za-z0-9+/=. Use this to identify encoded data.
Comparison of Base64 Tools with Other Encodings
Base64 increases size by 33% (3 bytes become 4 characters). It is not encryption – anyone can decode it. Use HTTPS for security. For even more compact encoding, consider Base64URL (for URLs) or Base58 (for crypto addresses). Our separate Encode Decode Tools suite covers those.
Who Should Use These Tools?
- Web Developers: Embed images in CSS/HTML, encode JSON for APIs, obfuscate small scripts.
- Mobile Developers: Convert images to Base64 for storing in SQLite or sending via JSON.
- Security Researchers: Decode Base64 payloads, analyze malware strings, convert hex dumps.
- DevOps Engineers: Encode Kubernetes secrets, handle ConfigMap data, convert YAML to Base64.
- Data Analysts: Encode CSV/TSV for database storage, decode Base64-encoded fields.
- Game Developers: Embed sprites as Base64 in JSON level files.
Frequently Asked Questions
Refer to the structured JSON FAQ above for detailed answers about specific conversions, browser support, performance, and data URI limits.
Getting Started
Choose any tool from the 36 listed above. Each dedicated page includes a clean interface, file upload (for images), text input (for other formats), real-time preview, copy button, and downloadable output. No account, no email, no hidden costs – just fast, reliable Base64 conversion for every use case.
Bookmark this page to access the complete Base64 toolkit whenever you need to encode images, JSON, XML, code, or any other data format.