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).
CSVBase64 to CSVDecode Base64 to CSV text with a live table preview.
SVGBase64 to SVGDecode Base64 to SVG source with a live preview.
BlobBase64 to BlobConvert Base64 to a Blob and download it — with the JS code.
Data URIData URI GeneratorTurn text or a file into a data: URI for HTML/CSS.
QRBase64 to QR CodeGenerate a scannable QR code from text or Base64.
ExcelBase64 to ExcelDecode Base64 to an .xlsx file, or encode a spreadsheet.
Decoders & developer tools
JWTJWT DecoderDecode a JSON Web Token's header and payload (no verification).
AuthBasic Auth Header GeneratorBuild an Authorization: Basic header from a username and password.
HexHex DecoderDecode a hex string to text, or encode text to hex.
UTF-8UTF-8 DecoderDecode UTF-8 bytes (hex or percent-encoded) to readable text.
HTMLHTML Entity DecoderDecode or encode HTML entities like & and '.
URLURL DecodePercent-decode a URL-encoded string.
URLURL EncodePercent-encode text for URLs and query parameters.
KubernetesKubernetes Secret DecoderPaste a Secret YAML and decode every base64 value.
GzipBase64 Gzip DecodeDecode Base64 and gunzip it in one step.
CertBase64 Certificate DecoderDecode, re-wrap, and convert PEM / DER certificates.
SAMLSAML DecoderDecode a SAMLResponse/Request — base64, DEFLATE, pretty XML.
PowerShellPowerShell -enc DecoderDecode a PowerShell EncodedCommand (UTF-16LE base64).
Dockerdockerconfigjson GeneratorBuild/decode a Kubernetes image-pull secret.
GraphQLGraphQL Cursor DecoderDecode Relay pagination cursors (arrayconnection:N).
MagicMagic DecoderAuto-detect & peel Base64 / hex / URL / gzip layers.
Platform & mobile
SheetsBase64 in Google SheetsApps Script BASE64ENCODE/DECODE custom functions.
FlutterFlutter Base64 Decode ErrorFix FormatException / "Invalid character" in Dart.
React NativeRN atob / btoa PolyfillFix "atob is not defined" in React Native.
AndroidAndroid Base64 NO_WRAPFix newlines in Base64.encodeToString.
ZPLImage to ZPL (^GFA)Convert an image to a Zebra-printer ^GFA graphic command.
AI & vision
AI VisionImage to Base64 for AI VisionImage → Base64 + ready payloads for GPT-4o, Claude, Gemini.
ClaudeClaude API Base64 ImageThe exact Messages API image block (raw base64, media_type).
GeminiGemini API Base64 ImageThe exact inline_data part for generateContent.
FixFix "Invalid Image" Base64 ErrorsValidate a base64 image against every vision-API rule.
ResizeBase64 Image Too Large?Resize + re-encode to fit GPT-4o/Claude/Gemini limits.
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 →