How-to guide
How to Decode Base64 to Text: Free Tool + Examples
To decode Base64 on Hellagape, paste the Base64 string into the "Input to convert" box on the Base64 Decoder and read the result — the page states typing updates the result instantly with nothing sent anywhere. Base64 decoding reverses the encoding: every 4 characters (from A–Z, a–z, 0–9, +, / with = padding) become 3 bytes, which are then read as UTF-8 text when they form valid text. Base64 is not encryption — there is no key, and anyone can decode any Base64 string in one step. The tool is free with no signup and follows RFC 4648 (verified live-page claims).
How to decode Base64 (step by step)
- Open the Base64 Decoder.
- Paste your Base64 string into "Input to convert." The page states the result updates instantly as you type.
- Read the decoded output. If the input looks malformed, the tool warns instead of silently producing garbage (per its About text).
- Copy the decoded text for use in your API payload, data URL, email header or config value.
Hand-checked examples (standard Base64, verify them in the tool): SGVsbG8= → Hello, Q2F0 → Cat, SGVsbG8sIHdvcmxkIQ== → Hello, world!. Note on controls: the fetched page text shows the input box and instant-result claim, but interactive details beyond that (result panel layout, counters, copy/download buttons, URL-safe acceptance, charset choice) were not live-tested in this check and are flagged as undocumented below rather than claimed. The page's templated "How to use it" text mentions choosing a direction and pressing Convert — on the sibling Base64 Encoder, a live check the same day found no Convert button (typing alone updated the result), so treat any "Press Convert" wording as template text and trust what you see in your session.
How Base64 decoding works: 4 characters in, 3 bytes out
Decoding reverses encoding. Each Base64 character maps to a 6-bit value (0–63) in the alphabet A–Z a–z 0–9 + /. Four characters give 24 bits, re-sliced into three 8-bit bytes. Padding tells the decoder how many real bytes the final group holds: == means 1 byte, = means 2 bytes, no padding means 3 bytes.
Worked example — Q2F0 → "Cat" (hand-checked): characters Q=16, 2=54, F=5, 0=52 → binary 010000 110110 000101 110100 → regrouped 01000011 01100001 01110100 → bytes 67, 97, 116 → C a t. Four characters became three bytes, no padding needed.
Padding examples (hand-checked): Zg== → f (1 byte, ==); Zm8= → fo (2 bytes, =); Zm9v → foo (3 bytes, no padding). And SGVsbG8= (8 characters) → Hello (5 bytes: one full group of 4 characters → 3 bytes, plus a padded group → 2 bytes).
Size rule: decoded bytes = (characters ÷ 4) × 3 − padding count. So 400 characters with no padding → 300 bytes; 8 characters with one = → 5 bytes. If your decoded text is longer than the Base64 you pasted, something other than standard Base64 decoding happened — re-check the input.
Tips and common mistakes
- Base64 is not encryption. Decoding needs no key or password. Never treat a Base64 string as protected — decode it only to inspect it, and use real encryption for secrets. The flip side: prefer an in-browser decoder (Hellagape states local JavaScript processing) for strings that might contain credentials, such as Authorization headers or Kubernetes secrets.
- Standard vs URL-safe: standard Base64 uses
+,/and=; URL-safe Base64 (JWTs, URLs, filenames) uses-and_and often drops padding. Competitor decoders advertise accepting both; Hellagape's fetched page text does not state URL-safe handling, so test with a known URL-safe sample (e.g. decodeSGVsbG8without padding) before trusting it for JWT segments. - Charset and garbled output: bytes become text via a charset, normally UTF-8. If output looks like garbage, the payload may be binary (image, PDF, compressed data) rather than text, or encoded in a legacy charset. Competitor tools offer charset pickers and hex previews; Hellagape's page claims UTF-8 text or binary data handling without documenting a charset control — test accented/CJK samples with a round-trip through the Base64 Encoder before relying on it for non-ASCII data.
- Whitespace and line breaks: email/MIME Base64 often wraps at 76 characters. Many decoders ignore whitespace; Hellagape's handling is undocumented in the fetched text — if a wrapped string fails, remove line breaks and retry.
- Missing padding: some producers strip
=. If decoding fails, add=until the length is a multiple of 4 and retry (e.g.SGVsbG8→SGVsbG8=). - Privacy: the page states "Nothing is sent anywhere" and "processes everything locally with JavaScript." That claim is reported as stated; network behaviour was not independently verified in this check. For highly sensitive strings, prefer an offline decoder you control.
Related Hellagape tools: Base64 Encoder for the reverse trip, URL Decoder for percent-encoded strings, Text to Binary for bit-level views.
FAQ
How do I decode Base64? Paste the Base64 string into "Input to convert" on the Base64 Decoder and read the instant result. Example: SGVsbG8= → Hello (hand-checked standard Base64).
Is Base64 encryption? No. Base64 is a reversible encoding with no key — anyone can decode it. Use it to move binary data through text-only channels (JSON, email, data URLs), never to protect secrets.
Why does my decoded output look garbled? Usually one of three reasons: the payload is binary (image/PDF/compressed), the bytes use a non-UTF-8 charset, or the input mixes alphabets (standard vs URL-safe). Check padding and whitespace first, then test a known sample like Q2F0 → Cat.
What is the difference between standard and URL-safe Base64? Standard uses + and / (plus = padding); URL-safe uses - and _ and often omits padding so the string survives URLs and JWTs. Hellagape's URL-safe handling is undocumented in the fetched page text — test before trusting it for JWTs.
How many bytes does Base64 decode to? (Characters ÷ 4) × 3 − padding count. Examples: 8 characters with one = → 5 bytes (Hello); 4 characters, no padding → 3 bytes (Cat); 400 characters → 300 bytes.
Can I decode files or JWTs with this tool? The page claims UTF-8 text or binary data decoding, but file-upload, JWT-segment and hex-preview behaviour were not documented in the fetched text. Paste a small known sample first; for files or full JWT inspection, use a decoder that explicitly supports them.
Do I need to press a Convert button? The page states typing updates the result instantly. Templated help text mentioning "Press Convert" was not verified as a real control (the sibling Encoder had no such button in a live check) — trust the instant result you see.
Is my Base64 string uploaded anywhere? The page states "Nothing is sent anywhere" and local JavaScript processing. That claim is reported as stated; it was not independently network-verified in this check.
Try it now
Base64 Decoder
Decode Base64 strings back to readable UTF-8 text or binary data.
Keep reading