# base64hub > Free Base64 encoder, decoder and converters for text, images and files. Every tool runs in your browser – nothing is uploaded. base64hub is a collection of 132 free tools for Base64 and related encodings. Every tool is JavaScript that runs in the visitor's browser; each page is served with a Content Security Policy that blocks every network request except Cloudflare Web Analytics page views (connect-src allows only the Cloudflare Web Analytics endpoint /cdn-cgi/rum), so pasted text and dropped files never leave the device. The site is available in English, German, Spanish, French, Portuguese, Russian, Japanese, Korean and Chinese. Official X account: https://x.com/base64hub ## Text tools - [Base64 Encoder: Encode Text to Base64 Online](https://base64hub.com/encode/): Encode text to Base64 as you type. UTF-8 and emoji safe, URL-safe and no-padding output, MIME or PEM line wrap, 27 charsets. Your text never leaves the browser. - [Base64 Decoder: Decode Base64 to Text Online](https://base64hub.com/decode/): Decode Base64 to readable text instantly. Handles URL-safe input, line breaks and missing padding, spots files inside, 27 charsets. Decoding stays on-device. - [Base64 Validator](https://base64hub.com/validate/): Check if a string is valid Base64: every bad character, padding error and line-wrap issue with its line and column, plus which variants it fits. Runs offline. - [Repair Base64](https://base64hub.com/repair-base64/): Fix broken Base64: removes quotes, JSON escapes, %3D, data: and PEM wrappers, restores + turned into spaces, fixes padding, and lists each change. Runs offline. - [MIME Base64 Encoder with 76-Character Lines](https://base64hub.com/mime-base64/): Encode text as MIME Base64 for email: lines wrapped at 76 characters per RFC 2045, or 64 for PEM, in UTF-8 or a legacy charset. Your message stays local. - [Base64 to Text: Decode a Base64 String](https://base64hub.com/base64-to-text/): Turn a Base64 string into readable text in any of 27 charsets or with auto-detect, and see whether the data is really a file. All of it runs offline. - [Text to Base64: Convert a String to Base64](https://base64hub.com/text-to-base64/): Convert text or a string to Base64 as you type, with charset, URL-safe alphabet, padding and line-break options. Processing happens on your own device only. - [Base64 to JSON: Decode and Pretty-Print JSON](https://base64hub.com/base64-to-json/): Decode Base64 to JSON and pretty-print it with 2-space indents. Accepts URL-safe token input and missing padding, saves a .json file. Never leaves your machine. - [JSON to Base64: Encode JSON Payloads](https://base64hub.com/json-to-base64/): Encode a JSON object or array to Base64 for headers, query strings, env vars and API fields, with URL-safe unpadded output for tokens. No JSON is uploaded. - [Base64 Size Calculator](https://base64hub.com/size-calculator/): Work out the exact Base64 length of any file size with padding, MIME or PEM line breaks, data URI and JSON overhead, or the decoded size of a Base64 string. - [UTF-16 to Base64: Encode UTF-16LE or UTF-16BE Text](https://base64hub.com/utf16-to-base64/): Encode text to Base64 as UTF-16LE, the format of Windows, .NET and PowerShell -EncodedCommand, or as UTF-16BE. No BOM is added. Runs offline in the browser tab. - [Base64 to UTF-16: Decode UTF-16LE and BE Text](https://base64hub.com/base64-to-utf16/): Decode Base64 holding UTF-16 text, such as Windows strings or PowerShell commands, in little- or big-endian order, BOM recognized. Data stays in the browser. - [UTF-8 to Base64: Encode Unicode Text and Emoji](https://base64hub.com/utf8-to-base64/): Encode Unicode text to Base64 via its exact UTF-8 bytes: accents, CJK, emoji and ZWJ sequences, with URL-safe and no-padding options. Text is processed locally. - [Base64 to UTF-8: Decode Base64 to Unicode Text](https://base64hub.com/base64-to-utf8/): Decode Base64 as UTF-8 text with emoji, accents and all scripts intact. Invalid byte sequences are flagged and a BOM is removed. Decoded in your tab. - [ASCII to Base64: Encode Plain 7-Bit Text](https://base64hub.com/ascii-to-base64/): Convert ASCII text to Base64 and catch anything that is not ASCII: characters outside 0–127 become ? and are counted. URL-safe and padding options, no server. - [Base64 to ASCII: Decode to Plain ASCII Text](https://base64hub.com/base64-to-ascii/): Decode Base64 to 7-bit ASCII text. Bytes above 127 show as � so non-ASCII content stands out, while control characters stay intact. Works offline, nothing sent. - [HTML to Base64: Encode Markup for Data URIs](https://base64hub.com/html-to-base64/): Encode HTML markup to Base64 for data: URIs, iframes, test fixtures and API fields that expect an encoded document. UTF-8 safe; markup never hits a server. - [Base64 to HTML](https://base64hub.com/base64-to-html/): Decode Base64 to HTML and read the source next to a sandboxed preview that blocks scripts, forms and remote images. Good for email bodies. Runs in your browser. - [XML to Base64: Encode XML Documents](https://base64hub.com/xml-to-base64/): Encode XML to Base64 for SOAP fields, e-invoicing and other APIs that want a document as one string. Match the declared charset, wrap if needed. Stays local. - [Base64 to XML: Decode XML Payloads](https://base64hub.com/base64-to-xml/): Decode Base64 to XML exactly as sent: SOAP bodies, SAML responses, invoices and config files. UTF-16 supported, saves as .xml. The decoding is done locally. - [Base64 to CSV: Decode and Save CSV Files](https://base64hub.com/base64-to-csv/): Decode Base64 into CSV text, check the rows on screen and download the file with its original bytes, BOM included. Handy for API exports. Data stays local. ## Image tools - [Image to Base64 Converter](https://base64hub.com/image-to-base64/): Convert PNG, JPG, GIF, WebP or SVG images to Base64: data URI, CSS, HTML img tag, Markdown or JSON. Resize, convert and strip EXIF first, all on your device. - [Base64 to Image](https://base64hub.com/base64-to-image/): Decode Base64 or a data URI to an image: PNG, JPEG, GIF, WebP, SVG, ICO, BMP. Format read from the bytes, preview, SHA-256, download. Runs in your browser. - [SVG to Base64](https://base64hub.com/svg-to-base64/): Convert SVG icons to Base64 for CSS backgrounds, img tags and data URIs. See when URL-encoded SVG is shorter and why xmlns matters. Runs offline on your device. - [PNG to Base64](https://base64hub.com/png-to-base64/): Convert PNG to Base64 or a data:image/png URI with transparency intact. Paste screenshots with Ctrl+V, resize or switch to WebP. The PNG stays on your device. - [JPG to Base64](https://base64hub.com/jpg-to-base64/): Convert JPG or JPEG photos to Base64 or a data:image/jpeg URI. Downscale, set quality and strip EXIF location data first. Photos never leave your browser. - [Base64 to PNG](https://base64hub.com/base64-to-png/): Turn Base64 or a data:image/png URI into a real .png file. Shows pixel size and SHA-256 and warns when the data is a JPEG in disguise. Decoded locally. - [Base64 to JPG](https://base64hub.com/base64-to-jpg/): Decode Base64 or data:image/jpeg URIs to .jpg photos. Preview, pixel size, SHA-256 and a warning when the data is PNG or WebP. Decoded on your device. - [Base64 to SVG](https://base64hub.com/base64-to-svg/): Decode Base64 or SVG data URIs to markup you can read, edit and save as .svg. The preview is an image, so embedded scripts stay inert. Runs in your browser. - [SVG to Data URI](https://base64hub.com/svg-data-uri/): Paste SVG markup and get the shortest data URI for CSS or HTML. Compares Base64, URL-encoded and optimized output, raw and gzipped. No upload needed. - [GIF to Base64](https://base64hub.com/gif-to-base64/): Convert GIF images, including animated GIFs, to Base64 or a data:image/gif URI. Every frame is kept unless you re-encode. Encoding happens in your browser. - [Base64 to GIF](https://base64hub.com/base64-to-gif/): Decode Base64 or a data:image/gif URI and watch the animation play before you save it. Every frame and delay is kept. Decoding happens locally in your browser. - [WebP to Base64](https://base64hub.com/webp-to-base64/): Convert WebP images to Base64 or a data:image/webp URI, or turn them into PNG or JPEG first for software that rejects WebP. Runs offline, with no upload step. - [Base64 to WebP](https://base64hub.com/base64-to-webp/): Decode Base64 or data:image/webp URIs to .webp files. Preview, pixel size, hash, and how to tell lossy, lossless and animated WebP apart. Stays on your device. - [Favicon and ICO to Base64](https://base64hub.com/favicon-to-base64/): Turn a favicon.ico, PNG or SVG icon into a Base64 data URI for , so one HTML file carries its own tab icon. PNGs can be resized. No uploads. - [Base64 to ICO](https://base64hub.com/base64-to-ico/): Turn Base64 or a data:image/x-icon URI into a favicon.ico file. Preview it and read the icon directory to see every size it holds. Decoded in your browser. - [BMP to Base64](https://base64hub.com/bmp-to-base64/): Convert BMP bitmaps to Base64 or a data:image/bmp URI, or re-encode them as PNG first and cut the size dramatically. The bitmap is processed in your browser. - [Base64 to BMP](https://base64hub.com/base64-to-bmp/): Decode Base64 to a .bmp bitmap with preview, pixel size and SHA-256. Check the header against the real size and repair headerless DIB data. All on your device. - [AVIF to Base64](https://base64hub.com/avif-to-base64/): Convert AVIF images to Base64 or a data:image/avif URI and keep their small size. Learn why resizing in a browser cannot produce AVIF. No upload, no server. - [HEIC to Base64](https://base64hub.com/heic-to-base64/): Convert HEIC and HEIF iPhone photos to Base64 for APIs and storage. Learn why HEIC data URIs display only in Safari and when to use JPEG. Encoded locally. - [TIFF to Base64](https://base64hub.com/tiff-to-base64/): Convert TIFF scans, faxes and multi-page TIFFs to Base64 for OCR and document APIs. Why TIFF data URIs fail outside Safari, and how big scans get. Runs locally. ## File tools - [Base64 to PDF](https://base64hub.com/base64-to-pdf/): Paste Base64 or a data URI and the PDF opens in your browser, ready to save. Shows version, page count, title and encryption. The file never leaves your device. - [File to Base64](https://base64hub.com/file-to-base64/): Convert any file to Base64: PDF, ZIP, audio, documents, binaries. Encode several at once, copy plain Base64, a data URI or JSON. Files stay on your device. - [Base64 to File Converter](https://base64hub.com/base64-to-file/): Decode Base64 or a data URI to a file. The real type is found from the first bytes, previewed and saved with the right extension, even under gzip. No upload. - [PDF to Base64](https://base64hub.com/pdf-to-base64/): Convert a PDF to Base64 for a JSON API, an email attachment or a download link. Copy plain Base64, a data URI or JSON. The document is encoded locally. - [Base64 to Audio](https://base64hub.com/base64-to-audio/): Play Base64 audio or a data:audio URI in your browser, check the real format and duration, and save it with the right extension. The sound stays on your device. - [Base64 to MP3](https://base64hub.com/base64-to-mp3/): Decode a Base64 MP3 or data:audio/mpeg URI, play it with its duration, and download the .mp3. Tells you when the audio is really AAC, WAV or Ogg. Runs locally. - [Audio to Base64](https://base64hub.com/audio-to-base64/): Convert MP3, WAV, OGG, M4A or FLAC audio to Base64 or a data:audio URI for HTML audio, JavaScript or speech APIs. Listen before you copy. Nothing is uploaded. - [MP3 to Base64](https://base64hub.com/mp3-to-base64/): Convert MP3 files to a data:audio/mpeg URI or plain Base64 for HTML audio, JavaScript and JSON APIs. See the length per bitrate and why ID3 tags matter. - [Base64 to ZIP](https://base64hub.com/base64-to-zip/): Decode a Base64 ZIP, see every file with size and date, open or save single entries and download the archive. Guards against zip bombs. Unpacking stays local. - [ZIP to Base64](https://base64hub.com/zip-to-base64/): Convert a ZIP archive to Base64 to send many files in one JSON field, CI secret or deployment API call. Compress first, encode second. The archive stays local. - [WAV to Base64](https://base64hub.com/wav-to-base64/): Convert WAV audio to Base64 or a data:audio/wav URI for speech recognition APIs, test fixtures and HTML audio. Check the size per second first. Runs locally. - [Base64 to WAV](https://base64hub.com/base64-to-wav/): Decode Base64 to a WAV file, play it and read the sample rate, channels and codec from the header. Covers raw PCM from speech APIs. Your audio is not uploaded. - [Video to Base64](https://base64hub.com/video-to-base64/): Convert MP4, WebM or MOV video to Base64 or a data:video URI for short embedded clips, test fixtures and APIs. Preview the clip first. Nothing is uploaded. - [Base64 to Video](https://base64hub.com/base64-to-video/): Decode Base64 video or a data:video URI, play it with duration and frame size shown, and download it. Explains which codecs play where. Nothing is uploaded. - [MP4 to Base64](https://base64hub.com/mp4-to-base64/): Convert MP4 clips to Base64 or a data:video/mp4 URI. Check the encoded length per bitrate, read the ftyp brand and preview the clip first. Nothing is uploaded. - [Base64 to MP4](https://base64hub.com/base64-to-mp4/): Decode a Base64 MP4 or data:video/mp4 URI, play it with duration and frame size, and download the .mp4. Spots MOV, M4A and truncated files. Nothing is uploaded. - [Base64 to Word (DOCX)](https://base64hub.com/base64-to-word/): Decode a Base64 DOCX, read its text right on the page, view or save embedded images and download the .docx. Flags legacy .doc files. The document stays local. - [Word to Base64](https://base64hub.com/word-to-base64/): Convert Word documents (DOCX or DOC) to Base64 for e-signature, document and email APIs, with the right MIME type. Tell DOCX from DOC by prefix. No upload. - [Base64 to Excel (XLSX)](https://base64hub.com/base64-to-excel/): Decode Base64 to an Excel file, check the first sheet as a table before opening it, and save the .xlsx. Explains dates, formulas and old .xls files. No upload. - [Excel to Base64](https://base64hub.com/excel-to-base64/): Convert Excel spreadsheets (XLSX, XLS) and CSV files to Base64 for APIs, automations and email attachments. Spot the format and a CSV BOM by prefix. No upload. - [Base64 to PowerPoint (PPTX)](https://base64hub.com/base64-to-pptx/): Decode Base64 to a PowerPoint file. Read the text of every slide on the page, save the pictures inside and download the .pptx. Decoding happens in your browser. - [Font to Base64](https://base64hub.com/font-to-base64/): Convert WOFF2, WOFF, TTF or OTF fonts to Base64 and get a complete @font-face rule with the right format() hint and font-display: swap. The font stays local. - [Base64 to Font](https://base64hub.com/base64-to-font/): Decode a Base64 font or a whole @font-face rule, type your own sample text in it, read the family, style and glyph count, and save the font file. Runs offline. ## Web & token tools - [JWT Decoder](https://base64hub.com/jwt-decoder/): Decode a JWT to its header, payload and claims, see exactly when it expires, and verify HS, RS, PS, ES or EdDSA signatures. The token never leaves your browser. - [Base64URL Encoder: URL-Safe Base64 Online](https://base64hub.com/base64url/): Encode text to Base64URL (RFC 4648 section 5): - and _ instead of + and /, no padding by default, ready for URLs, JWT and file names. Runs in the browser only. - [Basic Auth Header Generator](https://base64hub.com/basic-auth/): Turn a username and password into an Authorization: Basic header with UTF-8 or Latin-1 encoding, plus ready curl, fetch, Python and PHP code. Runs offline. - [Data URI Generator](https://base64hub.com/data-uri/): Build data: URIs from text or any file, Base64 or URL-encoded, with MIME type and charset. Copy as CSS url(), img, link or Markdown. Encoded locally. - [Base64URL Decoder: Decode URL-Safe Base64](https://base64hub.com/base64url-decode/): Decode Base64URL strings from URLs, cookies and JWT segments. Restores missing padding, accepts both alphabets and detects JSON. Nothing leaves your browser. - [JWT Encoder and Signer](https://base64hub.com/jwt-encoder/): Build a JWT from header and payload JSON and sign it with HS256, RS256, PS256, ES256 or EdDSA. Generates key pairs and a JWKS too; keys stay in this tab. - [URL Decoder (Percent-Decoding)](https://base64hub.com/url-decode/): Decode percent-encoded URLs and query strings: + as space, repeated decoding for %2520, exact error positions, legacy charsets and a parameter table, locally. - [URL Encoder (Percent-Encoding)](https://base64hub.com/url-encode/): Percent-encode text as encodeURIComponent, encodeURI or form data (space as +), in UTF-8 or a legacy charset such as Windows-1252. Encoding happens locally. - [HTML Entities Encoder and Decoder](https://base64hub.com/html-entities/): Escape text as named, decimal or hex HTML entities, or decode any HTML5 entity with the browser's own parser. Live output, processed locally, never rendered. - [SAML Response and Request Decoder](https://base64hub.com/saml-decoder/): Decode SAMLResponse and SAMLRequest from POST forms or Redirect URLs, inflate deflated messages, check NameID, audience, conditions and status, offline. - [Data URI Parser](https://base64hub.com/data-uri-parser/): Paste a data: URL, or the CSS or HTML around it, to see its MIME type, parameters, encoding and real content. Preview, save or re-encode it. Nothing is sent. - [Basic Auth Decoder](https://base64hub.com/basic-auth-decoder/): Decode an Authorization: Basic header, bare token or user:pass@ URL into username and password, with charset detection and raw bytes. Credentials stay local. - [Kubernetes Secret Decoder for kubectl YAML](https://base64hub.com/kubernetes-secret-decoder/): Paste kubectl get secret -o yaml output to see every data value decoded, with sizes, PEM and JSON detection and a stringData copy. Secrets stay in this tab. - [.dockerconfigjson Decoder for Image Pull Secrets](https://base64hub.com/dockerconfigjson-decoder/): Decode an imagePullSecret or Docker config.json into registry, username and password, with the auth field split. Build pull secrets too, all in the browser. - [PowerShell EncodedCommand Decoder](https://base64hub.com/powershell-encoded-command/): Decode powershell -enc and -EncodedCommand lines from alerts and logs: UTF-16LE Base64 to script, nested Base64 payloads listed. Decoding only, nothing runs. - [EML Viewer and MIME Email Decoder](https://base64hub.com/eml-decoder/): Open .eml files or raw email source: decoded headers, text and sandboxed HTML bodies, attachments to download and the MIME tree. The message stays local. - [Gzip Compress and Base64 Encode](https://base64hub.com/gzip-base64/): Gzip text or a file and get Base64, with sizes, ratio and a comparison to plain Base64. URL-safe and 76-column output; compression runs in your browser. - [Decode Base64 Gzip (and Zlib, Deflate)](https://base64hub.com/base64-gzip-decode/): Decode Base64 and decompress gzip, zlib or raw deflate in one step. Detects the format, shows the original file name, pretty-prints JSON, runs in-browser. - [Zlib and Deflate Compression to Base64](https://base64hub.com/zlib-base64/): Compress text or files with zlib or raw deflate and get Base64. Explains which library calls produce which format, with URL-safe output. Runs in your browser. - [Find and Decode Base64 Inside JSON](https://base64hub.com/json-base64-decoder/): Paste an API response, config or HAR file: every Base64 field is found, decoded and listed by JSON path, including JWTs and data URIs. Nothing is uploaded. - [Quoted-Printable Encoder and Decoder](https://base64hub.com/quoted-printable/): Decode quoted-printable email text such as =C3=A9 and =3D, or encode text with soft line breaks at 76 characters. Output matches Python's. Runs locally. - [Base64 to Base64URL Converter (URL-Safe)](https://base64hub.com/base64-to-base64url/): Convert standard Base64 to URL-safe Base64URL: + becomes -, / becomes _, and = padding is dropped or kept. Wrapped and data: input works. Nothing is sent out. - [Base64URL to Base64 Converter: Restore Padding](https://base64hub.com/base64url-to-base64/): Convert URL-safe Base64URL, such as a JWT segment, to standard Base64: - and _ become + and /, and missing = padding is restored. Converted in your browser. ## Keys & hashes - [Certificate Decoder (PEM / X.509)](https://base64hub.com/certificate-decoder/): Decode X.509 certificates, chains, CSRs and keys: subject, SANs, expiry, fingerprints and SPKI pin. Parsing happens in your browser, nothing is sent anywhere. - [CSR Decoder (PKCS#10 Request Viewer)](https://base64hub.com/csr-decoder/): Check a CSR before you send it to a CA: subject, SAN list, key type and size, signature algorithm and key pin. The request is parsed locally and never uploaded. - [PEM to DER Converter (Certificates and Keys)](https://base64hub.com/pem-to-der/): Convert PEM certificates, CSRs and keys to binary DER, one-line Base64 DER or hex, and download the .der file. The key material stays in your browser. - [DER to PEM Converter for .cer and .der Files](https://base64hub.com/der-to-pem/): Turn a binary .der or .cer file, one-line Base64 DER or a hex dump into PEM with the right BEGIN label and 64-column lines. Conversion runs on your device. - [SSH Key Fingerprint (SHA256 and MD5)](https://base64hub.com/ssh-key-fingerprint/): Get SHA256 and MD5 fingerprints of SSH public keys, authorized_keys and known_hosts files, and convert keys to PEM or RFC 4716. Keys are read locally. - [SHA-256 to Base64](https://base64hub.com/sha256-base64/): Hash text or files with SHA-256 and get the digest as Base64, Base64URL and hex, with MD5, SHA-1, SHA-384 and SHA-512 too. Large files stream, nothing uploads. - [HMAC Generator (Base64)](https://base64hub.com/hmac-base64/): Compute HMAC-SHA256, SHA-1, SHA-512 or MD5 signatures of text or files with a text, hex or Base64 key, as Base64 or hex. The secret never leaves the page. - [SRI Hash Generator](https://base64hub.com/sri-hash-generator/): Create Subresource Integrity hashes (sha256, sha384, sha512) for JS and CSS files and copy a ready script or link tag with crossorigin set. Hashed locally. - [MD5 to Base64](https://base64hub.com/md5-base64/): Get the MD5 of text or files in Base64 for Content-MD5 headers and cloud storage checksums, with hex alongside. Streams files over 200 MB; nothing is uploaded. - [Random Base64 Generator](https://base64hub.com/random-base64/): Generate secure random Base64, Base64URL or hex strings from 1 to 4096 bytes, up to 1000 at a time, with entropy shown. Nothing is sent or saved. - [Base64 Key Generator](https://base64hub.com/base64-key-generator/): Generate random Base64 keys: 32-byte secrets, AES-128/256 keys, HMAC and JWT secrets, Laravel APP_KEY, Auth.js, Django and Rails secrets. Made in your browser. - [CSP Nonce Generator](https://base64hub.com/csp-nonce-generator/): Generate a random 128-bit Base64 nonce for Content-Security-Policy with a matching script-src header and tag, plus server code for a fresh one per response. - [AES Encrypt to Base64](https://base64hub.com/aes-encrypt/): Encrypt text with a password using AES-256-GCM and PBKDF2 and get one Base64 string to paste anywhere. Open format, with Python and Node.js decrypt code. - [AES Decrypt from Base64](https://base64hub.com/aes-decrypt/): Decrypt AES-256-GCM Base64 text with its password or raw key. Wrong passwords and tampering are detected; the format is open, with Python and Node.js code. ## Other bases - [Hex to Base64 Converter for Hashes and Keys](https://base64hub.com/hex-to-base64/): Convert hex to Base64: SHA-256 and MD5 digests, keys, UUIDs or hex dumps. Spaces, colons and 0x are fine; padding and wrap are optional. Nothing is uploaded. - [Base64 to Hex Converter: Inspect the Raw Bytes](https://base64hub.com/base64-to-hex/): Decode Base64 to hex: lowercase or uppercase, with spaces, colons, 0x or \x, 16 or 32 bytes per line. Base64URL input works too. Decoding stays in your browser. - [Base32 Encoder and Decoder (RFC 4648)](https://base64hub.com/base32/): Encode text to Base32 or decode it back: RFC 4648 with or without padding, base32hex, Crockford and z-base-32. Handy for TOTP secrets. Runs offline in your tab. - [Base64 to Binary Converter: See Every Bit](https://base64hub.com/base64-to-binary/): Decode Base64 to 0s and 1s, 8 bits per byte, split by spaces, commas or new lines. Use it to read bit flags or to see how Base64 packs bits. Runs locally. - [Binary to Base64 Converter: Bits to Base64](https://base64hub.com/binary-to-base64/): Convert binary 0s and 1s to Base64. Reads spaced bytes, commas, 0b prefixes, 7-bit groups or one long bit string; padding and line wrap optional. Runs offline. - [Base64 to Byte Array for C, Java, Python, Go, C#](https://base64hub.com/base64-to-byte-array/): Decode Base64 into a byte array literal for C/C++, JavaScript, Python, Java, Go, C# or Rust, ready to paste. Java gets signed values. Decoded on your device. - [Byte Array to Base64 Converter for Any Language](https://base64hub.com/byte-array-to-base64/): Paste a byte array from C, JavaScript, Python, Java, Go, C# or Rust, or a bare list of numbers, and get Base64. Signed Java bytes work. Your code stays local. - [Base64 to Decimal Converter: Byte Values 0–255](https://base64hub.com/base64-to-decimal/): Decode Base64 and list every byte as a decimal number from 0 to 255, split by spaces, commas or new lines. Ready for JSON arrays and spreadsheets. Runs locally. - [Decimal to Base64 Converter: Byte Lists to Base64](https://base64hub.com/decimal-to-base64/): Convert decimal byte lists such as 72 105 33 or [72, 105, 33] to Base64. Brackets, commas and signed Java bytes are accepted. The conversion happens offline. - [Base32 Decoder: Base32 to Text or Hex](https://base64hub.com/base32-decode/): Decode Base32 to text, hex or a file. Lower case, spaces and missing padding are accepted, so TOTP secrets paste straight in. Decoding happens in the browser. - [Base58 Encoder and Decoder Online](https://base64hub.com/base58/): Encode text or bytes to Base58 and decode it back with the Bitcoin, Flickr or Ripple alphabet. Leading zero bytes are kept as 1s. Runs locally, nothing is sent. - [Base58 Decoder: Base58 to Hex and Text](https://base64hub.com/base58-decode/): Decode Base58 such as Bitcoin addresses, Solana keys and IPFS Qm hashes to hex, text or Base64. Three alphabets, leading 1s kept. Decoding stays in the page. - [Base58Check Encoder and Decoder](https://base64hub.com/base58check/): Turn a version byte and payload in hex into Base58Check, or decode an address or WIF key and verify its double SHA-256 checksum. Computed locally, no uploads. - [Base64 to Base58 Converter Online](https://base64hub.com/base64-to-base58/): Convert Base64 to Base58 for Solana keys, IPFS multihashes and other binary IDs. Accepts URL-safe and unpadded Base64 and keeps leading zeros. Works offline. - [Base58 to Base64: Convert Keys and Hashes](https://base64hub.com/base58-to-base64/): Convert Base58 values such as Solana public keys, signatures and IPFS Qm hashes to Base64, padded or not. Leading 1s become zero bytes. Keys stay in the tab. - [Base64 to Base32 for TOTP Secrets](https://base64hub.com/base64-to-base32/): Convert a Base64 key to RFC 4648 Base32, padded or not, for authenticator apps and otpauth:// links. Accepts URL-safe Base64. The secret stays in your browser. - [Base32 to Base64 Converter Online](https://base64hub.com/base32-to-base64/): Convert RFC 4648 Base32, such as a 2FA setup key, to standard Base64. Lower case, spaces and missing padding are accepted. Conversion never leaves your device. - [Base62 Encoder and Decoder Online](https://base64hub.com/base62/): Encode text, bytes or a number to Base62 and decode it back, with 0-9A-Za-z or 0-9a-zA-Z ordering to match your library. Good for short IDs. Runs in the page. - [Base36 Encoder, Decoder and Converter](https://base64hub.com/base36/): Convert text, bytes or decimal numbers to Base36 and back, in lower or upper case. Numbers far beyond 2^53 stay exact. Everything runs inside your browser. - [Base85 / Ascii85 Encoder and Decoder](https://base64hub.com/base85/): Encode and decode Ascii85 as used in PDF and PostScript, with optional <~ ~> and the z shortcut, plus Git/Python Base85, Z85 and RFC 1924. Runs locally. - [Z85 Encoder and Decoder (ZeroMQ)](https://base64hub.com/z85/): Convert hex to Z85 and back per the ZeroMQ spec: 4-byte blocks, spec test vectors, 40-character CurveZMQ keys, optional partial last block. Runs client-side. - [Base91 Encoder and Decoder (basE91)](https://base64hub.com/base91/): Encode text or bytes to basE91 and decode it back. About 23% overhead on random data, below Base64 and Ascii85, with Joachim Henke's alphabet. Runs offline. - [Base45 Encoder and Decoder (RFC 9285)](https://base64hub.com/base45/): Encode and decode Base45 (RFC 9285), the QR-friendly encoding behind EU Digital COVID Certificates. Checked against the RFC examples. No data is uploaded. - [Base16 Encoder and Decoder (RFC 4648 Hex)](https://base64hub.com/base16/): Encode text to RFC 4648 Base16, uppercase hex with two characters per byte, or decode Base16 back to text in 27 charsets. Lowercase input is fine. Runs locally. - [Uuencode and Uudecode Online Converter](https://base64hub.com/uuencode/): Uuencode text with begin/end lines and a file name, or uudecode a pasted message: the preamble is skipped, the file name kept for saving. Nothing is uploaded. - [Xxencode and Xxdecode Online Converter](https://base64hub.com/xxencode/): Xxencode text or bytes with begin/end lines, or xxdecode a pasted block and save it under its original name. Letters, digits, plus, minus only. Works offline. - [Hex to Text, ASCII and String Converter](https://base64hub.com/hex-to-text/): Convert hex to readable text, ASCII or a UTF-8 string. Accepts spaces, colons, 0x and \x prefixes, with 27 charsets to pick from. Decoding runs in your tab. - [Text to Hex: String and ASCII to Hexadecimal](https://base64hub.com/text-to-hex/): Convert text or a string to hex bytes. Pick the case, the charset and a separator: spaces, colons, 0x or \x escapes. Your text is converted locally, never sent. - [Binary to Text Translator: Decode 0s and 1s](https://base64hub.com/binary-to-text/): Translate binary code to text. Reads 8-bit and 7-bit groups, commas, 0b prefixes or one long bit string, and decodes ASCII or UTF-8. The bits stay local. - [Text to Binary Converter: Letters to 0s and 1s](https://base64hub.com/text-to-binary/): Convert text, names or sentences to 8-bit binary in UTF-8, ASCII or another charset, separated by spaces, commas or new lines. Works offline in the browser tab. ## Guides - [How Base64 Works, Byte by Byte](https://base64hub.com/learn/how-base64-works/): How Base64 turns 3 bytes into 4 characters: 6-bit groups, the 64-character alphabet and = padding, with worked examples for Man, Ma and M, and where it is used. - [Base64 Padding: What the = Signs Do](https://base64hub.com/learn/padding/): Why Base64 ends in = or ==, when padding is optional, which decoders reject missing padding, how to restore it from length mod 4, and non-canonical encodings. - [Base64 vs Base64URL: Alphabets, Padding, Pitfalls](https://base64hub.com/learn/base64-vs-base64url/): Base64URL swaps + and / for - and _ and usually drops padding. RFC 4648 §4 vs §5, where each variant is used, how to convert, and bugs with + becoming a space. - [Base64 Is Not Encryption: Encoding vs Encryption](https://base64hub.com/learn/encoding-vs-encryption/): Base64 hides nothing: anyone can decode it without a key. How Basic Auth, Kubernetes Secrets and JWT payloads leak, and what to use instead: AES-GCM, Argon2. - [Data URI Performance: When Inlining Base64 Pays Off](https://base64hub.com/learn/data-uri-performance/): Measured: how gzip and Brotli shrink Base64 data URIs for PNG, JPEG, WOFF2 and SVG, plus caching, render blocking, CSP data: rules and when inlining pays. - [Base64 Size Overhead: The Exact Formula](https://base64hub.com/learn/base64-size-overhead/): Base64 output is 4 × ceil(n / 3) characters. The exact formula with padding and MIME line breaks, a size table, why it is 33% and what compression does. - [Base64 in Email: MIME, Attachments and Headers](https://base64hub.com/learn/base64-in-email/): How email uses Base64: base64 vs quoted-printable transfer encoding, 76-character lines, attachments, =?UTF-8?B?...?= headers and extracting files from .eml. - [Base64 vs Hex, Base32, Base58 and Base85 Compared](https://base64hub.com/learn/base64-vs-hex-base32-base58-base85/): Base64, hex, Base32, Base58, Ascii85, Z85 and Base45 side by side: alphabets, size overhead, case and URL safety, and the same 12 bytes encoded in each. - [Common Base64 Prefixes: Identify a File by Its Start](https://base64hub.com/learn/common-base64-prefixes/): What iVBORw0KGgo, /9j/, JVBERi0, UEsDB, H4sI, eyJ and MII mean: a table of Base64 prefixes for PNG, JPEG, PDF, ZIP, gzip, JSON, certificates and more. - [Base64 Decoding Errors and How to Fix Them](https://base64hub.com/learn/base64-errors/): Fix Base64 decode errors: Incorrect padding, Invalid character, atob not correctly encoded, Java Illegal base64 character, garbled text and double encoding. - [Uint8Array.toBase64 and fromBase64 in JavaScript](https://base64hub.com/learn/uint8array-tobase64/): Uint8Array.toBase64, fromBase64, setFromBase64, toHex and fromHex explained: options, lastChunkHandling, browser and Node.js support, and a fallback. - [How JWT Uses Base64URL: Decode a Token by Hand](https://base64hub.com/learn/base64-in-jwt/): How JSON Web Tokens use Base64URL without padding, how to decode the header and payload by hand in JS, Python and bash, and the mistakes that break tokens. - [Base64 Standards: From PEM and MIME to RFC 4648](https://base64hub.com/learn/base64-standards/): The history of Base64 in RFCs: PEM (RFC 989, 1421), MIME (RFC 2045), RFC 3548 and 4648, JWS base64url, IMAP modified UTF-7, OpenPGP armor and variants. ## Base64 in code - [Base64 in JavaScript](https://base64hub.com/code/javascript/): Base64 in browser JavaScript: why btoa fails on Unicode, the TextEncoder fix, Uint8Array.toBase64 and fromBase64, URL-safe output, files and exact error names. - [Base64 in Python](https://base64hub.com/code/python/): Encode and decode Base64 in Python with the base64 module: UTF-8 strings, URL-safe without padding, files, streaming, validate=True and binascii.Error fixes. - [Base64 in PHP](https://base64hub.com/code/php/): Base64 in PHP: base64_encode and base64_decode, why strict mode matters, URL-safe encoding with strtr, files, stream filters for large data and chunk_split. - [Base64 in Java](https://base64hub.com/code/java/): Base64 in Java 8+ with java.util.Base64: UTF-8 strings, URL-safe without padding, the MIME encoder, file streams with wrap() and IllegalArgumentException fixes. - [Base64 in C#](https://base64hub.com/code/csharp/): Base64 in C#: Convert.ToBase64String and FromBase64String, Base64Url in .NET 9, TryFromBase64String, line breaks, CryptoStream for big files, FormatException. - [Base64 in Go](https://base64hub.com/code/go/): Base64 in Go with encoding/base64: StdEncoding, URLEncoding and RawURLEncoding, streaming with NewEncoder, Strict mode, CorruptInputError and padding mistakes. - [Base64 in Node.js](https://base64hub.com/code/nodejs/): Base64 in Node.js with Buffer: UTF-8 strings, the base64url encoding, files, streaming large files with a Transform, strict validation and the lenient decoder. - [Base64 in Bash](https://base64hub.com/code/bash/): Base64 on the Linux and macOS command line: echo -n vs echo, base64 -w 0, -d vs -D, URL-safe with basenc or tr, files, padding, exit codes and 'invalid input'. - [Base64 in Rust](https://base64hub.com/code/rust/): Base64 in Rust with the base64 crate Engine API (0.21+): STANDARD and URL_SAFE_NO_PAD, padding modes, files, EncoderWriter streaming and DecodeError variants. - [Base64 in Ruby](https://base64hub.com/code/ruby/): Base64 in Ruby: strict_encode64 vs encode64 newlines, urlsafe_encode64 padding: false, files, chunked encoding with pack('m0') and the Ruby 3.4 gem change. - [Base64 in PowerShell](https://base64hub.com/code/powershell/): Base64 in PowerShell with [Convert]::ToBase64String: UTF-8 vs UTF-16 strings, -EncodedCommand, files, large data, URL-safe output and FromBase64String errors. - [Base64 in Kotlin](https://base64hub.com/code/kotlin/): Base64 in Kotlin with kotlin.io.encoding.Base64: UTF-8 strings, UrlSafe with PaddingOption, MIME, file streams, Android options and exact exception messages. - [Base64 in Swift](https://base64hub.com/code/swift/): Base64 in Swift with Foundation: base64EncodedString and Data(base64Encoded:), why decoding returns nil, URL-safe helpers, line-length options and large files. - [Base64 with OpenSSL](https://base64hub.com/code/openssl/): Base64 with the openssl command: encode and decode strings and files, -A for one-line output, the missing-newline trap, silent failures, hashes and random keys. - [Base64 in C](https://base64hub.com/code/c/): A compact, tested Base64 encoder and strict decoder in portable C99: buffer sizes, padding checks, streaming a file from stdin, URL-safe output, common bugs. - [Base64 in C++](https://base64hub.com/code/cpp/): Base64 in C++: no std function exists, so here is a tested header-only C++17 encoder and decoder with URL-safe and no-padding modes, files and library APIs. - [Base64 in Dart](https://base64hub.com/code/dart/): Base64 in Dart and Flutter with dart:convert: base64Encode, base64Url, normalize() for missing padding, file streams, Image.memory and FormatException messages. - [Base64 in SQL](https://base64hub.com/code/sql/): Base64 in SQL: MySQL TO_BASE64 and FROM_BASE64, PostgreSQL encode and decode, the SQL Server XML base64Binary trick, BASE64_ENCODE in 2025 and UTF-8 traps. - [Base64 in Perl](https://base64hub.com/code/perl/): Base64 in Perl with core MIME::Base64: the newline argument, UTF-8 and 'Wide character' errors, encode_base64url, files in 57-byte chunks, lenient decoding. ## Software Outside the browser, the same Base64 rules ship as a command line tool, packages, an MCP server, a Chrome extension, a free HTTP API (https://api.base64hub.com/v1) and a Telegram bot. All are free and MIT-licensed. - [Download base64hub: CLI, Packages, Extension, API and Bot](https://base64hub.com/download/): Get Base64 outside the browser: the b64 CLI for macOS, Linux and Windows, npm and PyPI packages, an MCP server, a Chrome extension, an API and a Telegram bot. - [b64: Base64 Command Line Tool for macOS, Linux, Windows](https://base64hub.com/cli/): b64 is a free Base64 command line tool: encode, decode and validate text or files, URL-safe output and data URIs, same flags on macOS, Linux and Windows. - [base64hub on npm: Base64 Library and CLI for Node.js](https://base64hub.com/npm/): The base64hub npm package: encode, decode and validate Base64 in Node.js 18+, URL-safe and data URIs, zero dependencies, plus the b64 command line tool. - [base64hub on PyPI: Python Base64 Library and CLI](https://base64hub.com/pypi/): pip install base64hub: forgiving Base64 decode, URL-safe encode, validation and data URIs for Python 3.9+, with no dependencies and the b64 command line tool. - [base64hub MCP Server: Base64 Tools for AI Assistants](https://base64hub.com/mcp/): base64hub-mcp gives AI assistants exact Base64 encode, decode and validate tools over MCP. One npx command, runs locally, works in Claude, Cursor and VS Code. - [Base64 Chrome Extension: Encode and Decode on Any Page](https://base64hub.com/chrome-extension/): Free base64hub extension for Chrome: encode and decode Base64 from the toolbar or the right-click menu, URL-safe, no padding and data URIs. No host permissions. - [Free Base64 API: Encode, Decode and Validate over HTTPS](https://base64hub.com/api/): A free Base64 REST API with no key: encode text or bytes, decode leniently, validate, URL-safe and MIME wrap. JSON in and out, CORS enabled, OpenAPI 3.1 spec. - [Base64 Telegram Bot: Encode and Decode in Any Chat](https://base64hub.com/telegram-bot/): @base64hubbot is a free Base64 bot for Telegram: send text to encode, Base64 to decode, files up to 1 MB, URL-safe output, and inline mode in any chat. ## Docs - [base64hub Docs](https://base64hub.com/docs/): Reference for base64hub software: the free Base64 HTTP API, the b64 CLI, npm and PyPI packages, the MCP server, the Chrome extension and the Telegram bot. - [HTTP API Overview](https://base64hub.com/docs/api/): base64hub API reference: base URL, JSON and raw-byte request formats, CORS, the 1 MB body limit, rate limits, and every error code with its HTTP status. - [Encode](https://base64hub.com/docs/api/encode/): POST /v1/encode turns text or raw bytes into Base64: standard or URL-safe alphabet, optional padding and line wrap. Request formats, examples and errors. - [Decode](https://base64hub.com/docs/api/decode/): POST /v1/decode turns Base64 into UTF-8 text, hex for binary data, or raw bytes. Lenient input: whitespace, data URIs, missing padding, either alphabet. - [Validate](https://base64hub.com/docs/api/validate/): POST /v1/validate checks whether a string is Base64 and reports its alphabet, padding and decoded size, or the exact problem and position. Always status 200. - [Health](https://base64hub.com/docs/api/health/): GET /v1/health returns the status and version of the base64hub Base64 API. Use it for uptime monitors and to check which version is deployed. - [b64 CLI Reference](https://base64hub.com/docs/cli/): Reference for the b64 Base64 command line tool: install, every flag, how flags combine, exit codes, error messages and tested examples for scripts and pipes. - [npm Package Reference](https://base64hub.com/docs/npm/): API reference for the base64hub npm package: encode, decode, validate and dataUri for Node.js 18+, the Base64Error class, TypeScript types and the b64 command. - [Python Package Reference](https://base64hub.com/docs/python/): API reference for the base64hub PyPI package: encode, decode, validate, data_uri and sniff_mime for Python 3.9+, the Base64Error exception and the b64 command. - [MCP Server Reference](https://base64hub.com/docs/mcp/): Set up base64hub-mcp in Claude Desktop, Claude Code, Cursor or VS Code, and reference for its base64_encode, base64_decode and base64_validate tools. - [Chrome Extension Guide](https://base64hub.com/docs/extension/): How the base64hub Chrome extension works: popup options, the right-click menu, the permissions it asks for and why, what it sends over the network, its limits. - [Telegram Bot Guide](https://base64hub.com/docs/telegram/): How @base64hubbot handles text, commands, files, photos and inline queries, how it decides between encoding and decoding, its limits and its languages. ## Questions and answers Q: Is Base64 encryption? A: No. It is an encoding, and anyone can reverse it. For secrets, encrypt first, then encode. See encoding vs encryption. Q: What is the difference between Base64 and Base64URL? A: Base64URL swaps + and / for - and _ and usually drops padding, so the result is safe in URLs and filenames. Try the Base64URL tool. Q: Why is my output about 33% bigger? A: Every 3 bytes become 4 characters. Line breaks in MIME mode add a little more. Check exact sizes with the size calculator. Q: Can I convert images and files? A: Yes: image to Base64, file to Base64 and back with Base64 to image or Base64 to file. Nothing is uploaded. Q: Why does decoded text look garbled? A: The bytes are probably binary or in another charset. Switch the charset or decode to a file. Q: What is a data URI? A: A Base64 payload with a MIME prefix, like data:image/png;base64,…, which you can embed directly in HTML or CSS. Build one with the data URI generator. Q: Do you store or see my data? A: No. The pages are static files and the tools run in JavaScript on your device. A Content Security Policy blocks every network request from the page except Cloudflare’s page-view count, so there is nowhere for your data to go. Details. Q: Is base64hub really free? A: Yes. No accounts, no limits, no premium tier hiding the good stuff.