DevToolGrid/Encoding/Base64

Encoding

Base64 encode/decode

Encode text to Base64 and decode it back to readable form.

Base64 workspace

Edit, inspect, copy

ready
SGVsbG8gZnJvbSBEZXZUb29sR3JpZA==

More Base64 guides

Base64 Encoder and Decoder OnlineEncode text to Base64 and decode Base64 back to readable text online. Handles Unicode correctly and runs entirely in your browser — no upload.How to Encode and Decode Base64 OnlineStep-by-step: how to encode text to Base64 and decode Base64 strings back to text online, with correct handling of Unicode characters.Base64 Encoding ExplainedHow Base64 encoding works under the hood: grouping bits into 6-bit chunks, the 64-character alphabet, and why output is padded with equals signs.Common Base64 MistakesMixing up Base64 and Base64url, missing padding, whitespace in the string and treating Base64 as encryption — the common Base64 mistakes and their fixes.Base64 and HTTP Basic AuthHow HTTP Basic authentication uses Base64 to encode credentials, how to build and decode the Authorization header, and why it needs HTTPS.Base64 vs Base64url: What Is the Difference?Base64 vs Base64url explained: the two characters that differ, why Base64url exists, and where each variant is used — JWTs, URLs and filenames.Base64 to Text Converter: Decode Base64 Back to Readable TextPaste a Base64 string and get plain text back. A browser-based Base64 to text converter, plus the encoding and padding issues that cause garbled output.Base64 Encode an Image: Data URIs, Size Cost and When to Use ThemHow to Base64 encode an image into a data URI for HTML, CSS, JSON or email — the exact size penalty, the caching and CSP trade-offs, commands for every platform, and when a normal image file wins.Base64 Encode Linux: Command Line Encoding and DecodingBase64 encode and decode on Linux with the base64 command: files, pipes, no-wrap output, and the trailing-newline gotcha that breaks token comparisons.Base64 Encode a File: Turn Any File Into Safe TextHow to Base64 encode a file and when it is worth doing — email attachments, JSON payloads, config secrets — plus size limits and binary-safe decoding.Base64 Encode Online: Text and Files in Your BrowserEncode text or files to Base64 online without uploading anything. How the encoder handles Unicode, padding and line wrapping, and when to use base64url.Base64 Encode a String: From Text to Base64 and BackHow to Base64 encode a string in the browser, PHP, Python, JavaScript and the shell — including the Unicode trap that breaks naive JavaScript encoding.Base64 Encoding Algorithm: How 3 Bytes Become 4 CharactersThe Base64 encoding algorithm explained — 6-bit grouping, the 64-character alphabet, padding rules, and why the output is always 33% larger.Base64 Encoded Certificate: PEM, DER and Converting Between ThemWhat a Base64 encoded certificate is, how PEM wraps DER bytes, and the openssl commands to convert, inspect and embed certificates safely.Base64 Decoder to Hex: Convert Base64 to HexadecimalConvert a Base64 string to hex to inspect the underlying bytes, identify file types from magic numbers, and debug binary payloads.Base64 Decode and Download: Turn a Payload Back Into a FileHow to decode a Base64 payload and save it as a file — in the browser with Blob and object URLs, and on the command line for large payloads.Base64 Decode and Unzip: Handling Compressed PayloadsHow to decode a Base64 payload that contains gzip or ZIP data, in what order to apply the steps, and how to tell compressed data from plain bytes.Base64 Decode Android: Kotlin and Java Without the PitfallsDecoding Base64 on Android with android.util.Base64 and java.util.Base64 — which to use, the NO_WRAP flag, and handling base64url payloads such as JWTs.Base64 Decode ASCII: Reading Decoded Bytes as TextWhat happens when you decode Base64 to ASCII, why non-ASCII bytes appear as question marks, and how UTF-8 changes the picture.Base64 Encode Bytes: Byte Arrays in Python, Java, C# and JSHow to Base64 encode and decode byte arrays in each major language, why bytes are the native input, and how to avoid accidental string conversion.Base64 Encode Browser: atob, btoa and the Unicode ProblemEncoding and decoding Base64 in the browser with btoa and atob, why they break on Unicode, and the TextEncoder approach that works for any string.Base64 Encode a File Linux: Files on the Command LineEncode and decode files with the base64 command on Linux and Windows, avoid line wrapping, and script the conversion for secrets and CI pipelines.Decode Base64 to PDF: Recovering a Document From a PayloadHow to decode a Base64 string into a working PDF, verify it really is a PDF, and handle data URI prefixes and truncated payloads.Decode Base64 Audio: Playing Encoded Sound in the BrowserHow to decode Base64 audio and play it — data URIs versus Blob URLs, MIME types for MP3, WAV and OGG, and why large clips need a different approach.Decode Base64 Angular: Encoding and Decoding in Angular AppsBase64 in Angular — using atob and btoa safely, handling Unicode, decoding JWTs, and displaying decoded files without tripping the sanitizer.Base64 to Text Python: Decoding With the base64 ModuleDecode Base64 to text in Python with b64decode, handle the bytes/str boundary, use urlsafe variants, and fix padding errors.Base64 to Text JS: Decoding in JavaScript CorrectlyDecode Base64 to text in JavaScript with atob, handle Unicode with TextDecoder, deal with base64url, and know the Node.js Buffer equivalent.Base64 to Text C#: Convert.FromBase64String ExplainedDecode Base64 to text in C# with Convert.FromBase64String, choose the right encoding, use TryFromBase64String for untrusted input, and handle base64url.Base64 to Text File: Saving Decoded Output CorrectlyDecode a Base64 payload into a text file, choose the right encoding and line endings, and know when the content should be written as binary instead.

Encoding

base64 encoder online on DevToolGrid

Base64 encode/decode is built for the search intent behind "base64 encoder online": a fast, browser-based developer tool that helps with API debugging, data formatting and everyday coding tasks without sign-up.

What this online developer tool is best for

Use it when you need quick results for base64 decoder online, encode base64, decode base64. The page has its own URL, localized metadata and related tools so developers can bookmark it, share it and return to the same workflow.