Base64 Tools
Encode and decode Base64 for text, files, and images. Encoding is not encryption.
8 tools · 100% browser-based · No uploads · No signup
About these Base64 tools
Base64 turns binary into ASCII so it can travel through JSON, email, or a data URI. These tools encode and decode text, files, and images, convert URL-safe alphabets, validate padding, and split long strings for PEM or source files.
Base64 is encoding, not encryption. Anyone who sees the string can decode it. Use it to embed a small image or ship bytes through a text-only channel, not to hide a password.
Tools in this category
Encode / Decode
Base64 is encoding, not encryption. Anyone who can see it can reverse it.
Image to Base64
Image to Base64 converter online. Convert PNG, JPG, WebP, and SVG images to Base64 data URIs for HTML/CSS embedding. Free image encoder tool.
File to Base64
Encode files to Base64 online. Convert any file to Base64 content for embedding in HTML, JSON, or XML. Free file to Base64 converter.
Image Preview
Base64 image viewer online. Paste Base64 image data and preview instantly. Supports PNG, JPG, WebP, GIF—decode and view Base64 images free.
URL-safe Converter
URL-safe Base64 converter online. Convert between standard Base64 and URL-safe Base64 format (replaces +/ with -_). Free browser tool.
Validator
Base64 validator online. Check if a string is valid Base64 instantly. Detect encoding issues, padding problems, and invalid characters free.
Splitter
Base64 line splitter online. Split long Base64 strings into lines for embedding in code, config files, or PEM certificates. Free browser tool.
Hex / Binary
Base64 to hex converter online. Convert Base64 to hexadecimal or binary representation and back. Free encoding conversion in your browser.
How these tools run in your browser
Encoding uses the browser's btoa / TextEncoder / FileReader path depending on the tool. Images can be previewed as data URIs. URL-safe mode maps +// to -/_ and may strip padding, which some APIs require.
Common Use Cases
- Embed a small icon as a data URI in CSS or Markdown
- Decode a JWT-style or HTTP Basic credential you already understand is not a secret store
- Convert between standard Base64 and the URL-safe alphabet that replaces + and /
- Check padding and illegal characters before an API client fails
- Turn a file into Base64 for a fixture in a unit test
Common Mistakes
Frequently Asked Questions
You may have URL-safe Base64 in a standard decoder, or the string is hex/binary rather than Base64. Try the URL-safe converter or hex tool first.
No. It increases size. Compress first (gzip, brotli, image codecs), then encode if you must put bytes in JSON.
When the string goes in a query parameter, filename, or JWT. Standard Base64 uses + and / which break URLs unless percent-encoded.