Free Base64 Encoder, Decoder & Base64 Converter Online
Free Base64 tools to encode and decode text, JSON, HTML, images, audio, and binary data. Convert between Base64 and CSV, XML, YAML, hex, and octal.
Built for developers, by a developer.
All tools run locally in your browser. Your data never leaves your device.
In This Collection
Base64 Encoder/Decoder
Text to Base64
Base64 to Text
Base64 to Image
PNG to Base64
Why this collection exists
Encode any type of data to Base64 or decode Base64 strings back to their original format — entirely in your browser. From plain text and JSON to images, audio, SVG, and binary data, every conversion runs client-side.
Base64 encoding is used everywhere in web development: embedding images in CSS, encoding binary data for JSON APIs, storing files in databases, and sending binary content over text-based protocols. This collection covers every common Base64 use case.
Best fit for
- Developers embedding images in CSS or HTML
- Backend engineers encoding binary data for APIs
- Frontend developers working with data URIs
- Security professionals encoding credentials
- Anyone debugging Base64-encoded strings
Featured tools in this collection
Start with the strongest tools in this workflow cluster.
Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 to plain text — with URL-safe mode, auto-detect, and size stats.
Text to Base64
Encode plain text to Base64 instantly. Handles UTF-8, emojis, and international characters.
Base64 to Text
Decode Base64 strings back to plain text. Handles UTF-8, URL-safe Base64, and broken padding.
Base64 to Image
Paste a Base64 data URI or raw Base64 string to preview and download the decoded image.
PNG to Base64
Convert a PNG image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
JPEG to Base64
Convert a JPEG or JPG image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
Tools by Workflow
Browse tools grouped by what you need to get done.
Text & Data to Base64
Encode plain text, JSON, HTML, CSS, JavaScript, XML, YAML, CSV, and other text formats to Base64.
Text to Base64
Encode plain text to Base64 instantly. Handles UTF-8, emojis, and international characters.
ASCII to Base64
Encode ASCII text strings to Base64. Commonly used for HTTP headers, API tokens, and config values.
JSON to Base64 Converter
Convert valid JSON into Base64 encoding with syntax validation and copy-ready output.
HTML to Base64
Encode an HTML document or fragment to Base64 for embedding in JSON payloads, data URIs, or API requests.
CSS to Base64
Encode a CSS stylesheet to Base64 for embedding in data URIs, JSON payloads, or API requests.
JavaScript to Base64
Encode JavaScript strings to Base64. Covers btoa(), Buffer, URL-safe mode, and common JS encoding patterns.
XML to Base64
Validate XML and encode it to Base64 with optional URL-safe output, stats, copy, and download.
SVG to Base64
Convert an SVG file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
YAML to Base64
Validate YAML and encode it to Base64 with optional URL-safe output, stats, copy, and download.
CSV to Base64
Encode CSV data to Base64 for embedding in JSON payloads, URL parameters, or API requests.
TSV to Base64
Encode tab-separated values to Base64 with row and column stats, URL-safe output, copy, and download.
Binary to Base64
Convert binary numbers (8-bit byte groups) to a Base64-encoded string.
Hexadecimal to Base64
Convert hexadecimal bytes to a Base64-encoded string. Accepts space-separated or continuous hex input.
Octal to Base64
Convert octal byte values to a Base64-encoded string. Enter space-separated octal numbers (0–377) and get Base64 output instantly.
Base64 Decoder
Decode Base64 strings back to text, JSON, HTML, image, binary, hex, and other formats.
Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 to plain text — with URL-safe mode, auto-detect, and size stats.
Base64 to Text
Decode Base64 strings back to plain text. Handles UTF-8, URL-safe Base64, and broken padding.
Base64 to ASCII
Decode Base64 strings back to ASCII text. Useful for reading HTTP auth headers, API tokens, and encoded config values.
Base64 to Image
Paste a Base64 data URI or raw Base64 string to preview and download the decoded image.
Base64 to Binary
Decode a Base64 string and display the raw bytes as 8-bit binary numbers separated by spaces.
Base64 to Hexadecimal
Decode a Base64 string and display the raw bytes as hexadecimal values separated by spaces.
Base64 to JSON Converter
Convert Base64 strings into formatted JSON with validation and copy-ready output.
Base64 to HTML
Decode a Base64-encoded string back to HTML markup. Paste the Base64 and get the raw HTML document or fragment instantly.
Base64 to CSS
Decode a Base64 string to CSS. Paste a Base64-encoded image to get a CSS background-image rule, or decode Base64 CSS text back to a stylesheet.
Base64 to JavaScript
Decode Base64 strings in a JavaScript context. Covers atob(), Buffer, and URL-safe Base64 patterns.
Base64 to XML
Decode Base64-encoded XML, validate the decoded markup, pretty-print it, and copy or download the result.
Base64 to YAML
Decode Base64-encoded YAML, validate the decoded content, pretty-print it, and copy or download the result.
Base64 to CSV
Decode a Base64-encoded string back to CSV data. Paste the Base64 and get the raw comma-separated values instantly.
Base64 to TSV
Decode Base64-encoded tab-separated values into readable TSV with row, column, character, and byte stats.
Base64 to Octal
Decode a Base64 string and display the raw bytes as octal values separated by spaces.
Image & Media to Base64
Convert PNG, JPG, GIF, BMP, WebP, SVG, AVIF, APNG, and audio files to Base64 data URIs.
PNG to Base64
Convert a PNG image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
JPEG to Base64
Convert a JPEG or JPG image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
GIF to Base64
Convert a GIF image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
BMP to Base64
Convert a BMP image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
WebP to Base64
Convert a WebP image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
SVG to Base64
Convert an SVG file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
AVIF to Base64
Convert an AVIF image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
APNG to Base64
Convert an Animated PNG (APNG) file to a Base64 string or data URI — paste directly into HTML or CSS without hosting the image.
MP3 to Base64
Convert an MP3 audio file to a Base64 string or data URI for embedding in HTML or JavaScript.
Audio to Base64
Convert audio files (MP3, WAV, OGG, FLAC, AAC) to Base64 strings or data URIs for embedding in HTML or JavaScript.
Base64 Image Encoder
Convert PNG, JPG, WebP, and SVG images to Base64 strings for direct embedding in HTML, CSS, or JSON payloads.
Browse the supporting categories
Jump into the broader categories that power this collection.
All tools in this collection
Browse the complete workflow cluster and jump into the tool you need next.
Base64 Encoder/Decoder
Encode text to Base64 or decode Base64 to plain text — with URL-safe mode, auto-detect, and size stats.
Text to Base64
Encode plain text to Base64 instantly. Handles UTF-8, emojis, and international characters.
Base64 to Text
Decode Base64 strings back to plain text. Handles UTF-8, URL-safe Base64, and broken padding.
ASCII to Base64
Encode ASCII text strings to Base64. Commonly used for HTTP headers, API tokens, and config values.
Base64 to ASCII
Decode Base64 strings back to ASCII text. Useful for reading HTTP auth headers, API tokens, and encoded config values.
JSON to Base64 Converter
Convert valid JSON into Base64 encoding with syntax validation and copy-ready output.
Base64 to JSON Converter
Convert Base64 strings into formatted JSON with validation and copy-ready output.
HTML to Base64
Encode an HTML document or fragment to Base64 for embedding in JSON payloads, data URIs, or API requests.
Base64 to HTML
Decode a Base64-encoded string back to HTML markup. Paste the Base64 and get the raw HTML document or fragment instantly.
CSS to Base64
Encode a CSS stylesheet to Base64 for embedding in data URIs, JSON payloads, or API requests.
Base64 to CSS
Decode a Base64 string to CSS. Paste a Base64-encoded image to get a CSS background-image rule, or decode Base64 CSS text back to a stylesheet.
JavaScript to Base64
Encode JavaScript strings to Base64. Covers btoa(), Buffer, URL-safe mode, and common JS encoding patterns.
Base64 to JavaScript
Decode Base64 strings in a JavaScript context. Covers atob(), Buffer, and URL-safe Base64 patterns.
XML to Base64
Validate XML and encode it to Base64 with optional URL-safe output, stats, copy, and download.
Base64 to XML
Decode Base64-encoded XML, validate the decoded markup, pretty-print it, and copy or download the result.
SVG to Base64
Convert an SVG file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
YAML to Base64
Validate YAML and encode it to Base64 with optional URL-safe output, stats, copy, and download.
Base64 to YAML
Decode Base64-encoded YAML, validate the decoded content, pretty-print it, and copy or download the result.
CSV to Base64
Encode CSV data to Base64 for embedding in JSON payloads, URL parameters, or API requests.
Base64 to CSV
Decode a Base64-encoded string back to CSV data. Paste the Base64 and get the raw comma-separated values instantly.
TSV to Base64
Encode tab-separated values to Base64 with row and column stats, URL-safe output, copy, and download.
Base64 to TSV
Decode Base64-encoded tab-separated values into readable TSV with row, column, character, and byte stats.
Binary to Base64
Convert binary numbers (8-bit byte groups) to a Base64-encoded string.
Base64 to Binary
Decode a Base64 string and display the raw bytes as 8-bit binary numbers separated by spaces.
Hexadecimal to Base64
Convert hexadecimal bytes to a Base64-encoded string. Accepts space-separated or continuous hex input.
Base64 to Hexadecimal
Decode a Base64 string and display the raw bytes as hexadecimal values separated by spaces.
Octal to Base64
Convert octal byte values to a Base64-encoded string. Enter space-separated octal numbers (0–377) and get Base64 output instantly.
Base64 to Octal
Decode a Base64 string and display the raw bytes as octal values separated by spaces.
Base64 to Image
Paste a Base64 data URI or raw Base64 string to preview and download the decoded image.
PNG to Base64
Convert a PNG image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
JPEG to Base64
Convert a JPEG or JPG image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
GIF to Base64
Convert a GIF image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
BMP to Base64
Convert a BMP image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
WebP to Base64
Convert a WebP image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
AVIF to Base64
Convert an AVIF image file to a Base64 string or data URI for embedding in HTML, CSS, or JavaScript.
APNG to Base64
Convert an Animated PNG (APNG) file to a Base64 string or data URI — paste directly into HTML or CSS without hosting the image.
MP3 to Base64
Convert an MP3 audio file to a Base64 string or data URI for embedding in HTML or JavaScript.
Audio to Base64
Convert audio files (MP3, WAV, OGG, FLAC, AAC) to Base64 strings or data URIs for embedding in HTML or JavaScript.
Base64 Image Encoder
Convert PNG, JPG, WebP, and SVG images to Base64 strings for direct embedding in HTML, CSS, or JSON payloads.
Collection FAQ
Extra context around when to use this toolkit and where to start.
How do I encode text to Base64?
Use Text to Base64. Type or paste any text and it instantly produces the Base64-encoded string. You can also use the generic Base64 encoder which handles encode and decode in one tool.
How do I decode a Base64 string?
Use Base64 to Text. Paste any Base64-encoded string and it decodes it back to the original text. For images, use Base64 to Image — it renders the decoded image directly in the browser.
How do I convert an image to a Base64 data URI?
Use PNG to Base64, JPEG to Base64, or the generic Base64 Image Encoder. Upload your image and it outputs a complete data URI string (data:image/png;base64,...) that you can embed directly in CSS backgrounds or HTML img src attributes.
Why is Base64 used in web development?
Base64 encodes binary data as ASCII text, allowing it to be safely transmitted over text-based protocols (HTTP headers, JSON, XML) or embedded in text files (CSS, HTML). Common uses: data URIs for small images, encoding file attachments in email, storing binary data in JSON APIs, and HTTP Basic Authentication headers.
How do I convert JSON to Base64?
Use JSON to Base64 Converter. Paste any JSON object or array and it outputs the Base64-encoded string. The reverse — Base64 to JSON Converter — decodes a Base64 string back to formatted JSON.
Related Collections
Move into adjacent workflows without losing context.

