Base64 Tools & Converters
Every base64.dev tool in one place — all run locally in your browser, with no upload, no ads, and no tracking.
Converters
ImageImage to Base64Drop an image, get a Base64 data URI for HTML/CSS.
ImageBase64 to ImageDecode Base64 or a data URI into a downloadable image.
FileFile to Base64Encode any file to a raw Base64 string or data URI.
FileBase64 to FileDecode Base64 and download it — file type auto-detected.
PNGPNG to Base64Convert a PNG to a Base64 data URI.
PNGBase64 to PNGDecode Base64 into a downloadable PNG.
JPGJPG to Base64Convert a JPG/JPEG to a Base64 data URI.
SVGSVG to Base64Convert an SVG to a Base64 data URI for CSS.
PDFPDF to Base64Encode a PDF to a Base64 string or data URI.
PDFBase64 to PDFDecode Base64 into a previewable, downloadable PDF.
AudioMP3 / Audio to Base64Encode MP3, WAV, or OGG audio to Base64.
HexBase64 to HexConvert Base64 to the hex of its bytes.
HexHex to Base64Convert a hex string to standard or URL-safe Base64.
JSONBase64 to JSONDecode Base64 and pretty-print it as JSON (incl. JWT payloads).
Calculators & utilities
CalculatorBase64 Size CalculatorBytes ↔ Base64 length and the exact ~33% overhead, formula explained.
URL-safeBase64URL Encode & DecodeURL-safe Base64 (RFC 4648 §5) for JWTs, URLs, and filenames.
Encode & decode by language
PythonBase64 in Pythonbase64.b64encode / b64decode, URL-safe, files — with a live tool.
JavaScriptBase64 in JavaScriptbtoa / atob with the TextEncoder Unicode-safe pattern.
TypeScriptBase64 in TypeScriptType-safe wrappers, browser vs Node Buffer.
Node.jsBase64 in Node.jsBuffer.from(...).toString('base64') and 'base64url'.
JavaBase64 in Javajava.util.Base64 getEncoder / getUrlEncoder.
GoBase64 in Goencoding/base64 StdEncoding / URLEncoding / RawURLEncoding.
RustBase64 in RustThe base64 crate Engine API (general_purpose::STANDARD).
PHPBase64 in PHPbase64_encode / base64_decode and the URL-safe variant.
C#Base64 in C#Convert.ToBase64String / FromBase64String with Encoding.UTF8.
RubyBase64 in Rubystrict_encode64 vs encode64, urlsafe_encode64.
SwiftBase64 in SwiftData.base64EncodedString() / Data(base64Encoded:).
KotlinBase64 in Kotlinkotlin.io.encoding.Base64, java.util / android.util.Base64.
CBase64 in CPortable lookup-table encoder/decoder + OpenSSL EVP.
C++Base64 in C++Self-contained std::string encoder + OpenSSL EVP.
BashBase64 in BashThe base64 command, echo -n gotcha, -w 0 wrapping.
PowerShellBase64 in PowerShell[Convert]::ToBase64String and the UTF-16 vs UTF-8 trap.
DartBase64 in Dart & Flutterdart:convert base64Encode / base64Decode / base64Url.
PerlBase64 in PerlMIME::Base64 encode_base64 / decode_base64, one-liners.
Looking for explanations, not just tools?
Our Base64 guides cover the concepts, formats, and every language in depth.
Browse the guides →