Encode text, one line
printf '%s' 'Hello, world!' | base64 --wrap=0printf adds no newline to the input. --wrap=0 keeps the encoded output on one line.
Output: SGVsbG8sIHdvcmxkIQ==
Convert text and files with protocol-specific settings. All processing stays on your device.
Preview limited to 64 Ki characters. Copy and save include the full result.
Ready. Your data stays in this browser.
UTF-8 text · files up to 10 MiBCopy a GNU/Linux command and run it locally. Static examples, independent of your input.
printf '%s' 'Hello, world!' | base64 --wrap=0printf adds no newline to the input. --wrap=0 keeps the encoded output on one line.
Output: SGVsbG8sIHdvcmxkIQ==
printf '%s' 'SGVsbG8sIHdvcmxkIQ==' | base64 --decodeFor known text input. A prompt may appear on the same line because the decoded bytes contain no trailing newline.
Output: Hello, world!
base64 --wrap=0 sample.bin > sample.b64Reads the original bytes, including binary data. Replace sample.bin with your local filename.
base64 --decode sample.b64 > restored.binWrites original bytes to disk. Use a different output filename; > replaces any existing output file. A failed decode can leave partial output.
Base64 turns bytes into text that travels easily through JSON, email, and other text-based systems. Convert UTF-8 text or files here, then copy or save the exact result.
Standard Base64 uses A–Z, a–z, 0–9, + and /. Three bytes become four characters; = supplies padding when needed.
RFC 4648 Base64 and Base64URL, JWT padding, MIME line breaks, PEM envelopes, and strict decoding explained with practical presets.
02What Base64 protects, what it does not, and how to handle sensitive data.
03Standard vs. URL-safe, padding, and the characters that trip you up.
04Useful Base64 snippets for JavaScript, Python, and your command line.
05Copy practical GNU/Linux Base64 commands for text, binary files, UTF-8 and Base64URL. Understand line wrapping, padding and invalid input errors.
06Understand why Base64 is used in JSON APIs, email, JWTs, certificates and Kubernetes. Learn its benefits, size overhead and when to send raw bytes instead.
Learn where Base64 fits in AI voice workflows, how to decode audio responses, and why PCM, WAV, codecs, sample rates, and stream boundaries matter.
Read article →Use Base64 in AI workflows: encode images and audio locally, choose raw Base64 or Data URLs, verify exact bytes, and debug common API errors.
Read article →Understand Base64 step by step: turn bytes into six-bit groups, decode padding, calculate size overhead, and choose the right alphabet.
Read article →No. This application converts in browser memory and does not transmit or save your input. The hosting provider receives ordinary page-request metadata when serving the website. Copying and downloading place data on your device. Read the full privacy explanation.
Yes. Text is encoded as UTF-8, including emoji and non-Latin scripts. Files use their original bytes. Raw data is limited to 10 MiB; encoded input can be up to 20 MiB. Binary output can be downloaded without opening or executing it.
After the converter and its scripts load, you can keep converting in the open tab without a connection. Reloading offline is not guaranteed. You can also run the command-line examples or self-host the source.
No. Base64 is reversible encoding with no secret key. Anyone can decode it. Use appropriate encryption and access controls for confidential data.
Use Ctrl + Enter (Command + Enter on macOS) to convert. Press Escape while focused inside the converter to clear input and output. Every control works with the keyboard.