Home › Developer Tools › Base64 Encoder / Decoder

Base64 Encoder / Decoder

Encode text or files to Base64 and decode Base64 back — including image previews. Everything runs locally in your browser: unlike many Base64 sites, your text and files are never uploaded to a server.

File → Base64

Pick any file — image, PDF, audio — to get its Base64 data URL. The file never leaves your device.

Base64 → Image

What is Base64?

Base64 turns binary data into plain ASCII text using 64 characters (A–Z, a–z, 0–9, + and /), so it can travel safely through email, URLs, JSON and HTML. It is an encoding, not encryption — anyone can decode it, so never treat Base64 as a way to hide secrets. The URL-safe option swaps + and / for - and _ and drops the padding, which is the variant used in JWTs and web tokens.

Files and images

Any file can be converted to a Base64 data URL — the format used to embed images directly in CSS and HTML. The decoder below the file tool turns Base64 back into a viewable, downloadable image.

Frequently Asked Questions

Is Base64 encryption?

No. Base64 is a public encoding — anyone can decode it instantly. Use real encryption for secrets.

Why is the Base64 output longer than my text?

Base64 stores 3 bytes in 4 characters, so output grows by about 33%.

Can I decode a SHA or MD5 hash here?

No — hashes are one-way and cannot be decoded by anyone. Tools claiming to "decrypt SHA-256" are fake; this tool only handles Base64.

Related Tools

JSON Formatter — Format, validate and minify JSON instantly — 100% in your browser.

Timestamp Converter — Convert Unix epoch timestamps to dates and back — seconds and milliseconds.

Discord Timestamp Generator — Create Discord timestamps that show in every user's own timezone.

URL Encoder / Decoder — URL-encode text and decode percent-encoded URLs — plus HTML entities.

UUID Generator — Generate random UUIDs (version 4) in bulk — up to 100 at once.

Hash Generator — Calculate MD5, SHA-1, SHA-256, SHA-512 and CRC32 hashes of any text.

File Checksum Calculator — Verify downloads: MD5, SHA-1, SHA-256 and SHA-512 checksums of any file.

File Compressor — Compress files into a ZIP archive in your browser — nothing uploaded.

JWT Decoder — Decode JWT header and payload, check expiry — without sending the token anywhere.

SQL Formatter — Format and beautify SQL queries — or minify them — instantly.

Regex Tester — Test regular expressions live — matches, groups and highlighting.

JSON to CSV Converter — Convert JSON arrays to CSV spreadsheets — download in one click.

JSON to Excel Converter — Convert JSON to a real .xlsx Excel file, ready to open.

JSON to XML Converter — Convert JSON to XML with proper escaping and array handling.

CSV to JSON Converter — Convert CSV spreadsheets to JSON arrays of objects.

JSON to YAML Converter — Convert JSON to clean, readable YAML for configs.

JSON Escape / Unescape — Escape text for embedding in JSON strings, and unescape JSON strings.

CSS Grid Generator — Design a CSS grid visually — tracks, gaps, alignment — and copy the code.

Online Code Checker — Check HTML, CSS or JavaScript for common errors — in your browser.

Website Source Code Viewer — Fetch and view any web page's HTML source — size and line count included.