Base64 decoder

Try Base64 Decoder

Base64 Decoder inputs

Loading calculator. If this message stays visible, enable JavaScript and reload.

The Base64 decoder reads a standard Base64 value and displays its decoded UTF-8 text. Paste the encoded value and choose Calculate / Run. For example, TW9uZXlPcg== decodes to MoneyOr. If the input is malformed or the decoded bytes are not valid UTF-8, the tool reports an error instead of guessing a text encoding.

This form is for text inspection. It does not recover arbitrary binary files, verify a token's signature or determine whether decoded content is trustworthy. Keep the original encoded value while you inspect the result. Knowing the source format, encoding and intended meaning is more useful than repeatedly trying transformations until something readable appears.

Understanding decoded text and common errors

How does the Base64 decoder produce readable text?

MoneyOr first decodes the Base64 characters into bytes. It then interprets those bytes as UTF-8 with strict error handling. These are separate stages. A Base64 value can correctly represent bytes that are not valid UTF-8 text, so a successful binary decoding does not automatically mean this text-only form can display a result.

For example, w6k= represents the UTF-8 bytes for the precomposed letter é and displays that letter. By contrast, /w== represents a byte that is not valid on its own in UTF-8. This tool rejects the latter with the same general message used for malformed Base64. It does not silently switch to a legacy character encoding.

The displayed result is a text value. It may contain spaces, line breaks or other characters that are not obvious in a narrow field. Inspect the full result before using it elsewhere. A text result that happens to resemble JSON, a web address or a command still needs interpretation in its own context.

If you generated the value yourself, compare the decoded text with the saved source. If it came from another system, confirm what that system encoded. A label saying “Base64” describes a representation, not the character encoding, file type or application meaning of the underlying bytes.

How do I decode a value and check it step by step?

  1. Keep the original encoded value and note its source.
  2. Confirm that it is standard Base64 representing UTF-8 text.
  3. Paste only the encoded payload into the input field.
  4. Choose Calculate / Run.
  5. Review the result or the error message.
  6. Copy suitable text to a separate destination after inspecting it.

Exclude surrounding labels, quotation marks and code fences unless they genuinely belong to the encoded value. A copied data URI has a prefix before its payload, while a structured token can contain several segments. Those wrappers are not automatically extracted by this form. Identify the exact payload according to the source format first.

Use a short known example to test your workflow. The Base64 encoder can create a harmless UTF-8 sample. Encode a passage containing the character types you care about, decode that result and compare it with the original. This checks your handling of the example, without exposing a live credential or private message.

Do not execute a decoded command or open a decoded link merely because the transformation succeeded. The operation only changes representation. It neither establishes who created the content nor checks whether following its instructions is appropriate. For ordinary debugging, inspect synthetic data wherever it can answer the same technical question.

Which examples show successful decoding and rejection?

Each input below was checked against MoneyOr's implementation. The examples deliberately include plain text, Unicode, a stored newline and several common reasons for rejection. An error in this table describes the text decoder's requirements, rather than a universal judgement about every possible Base64 use.

Encoded inputResultMeaning
TW9uZXlPcg==MoneyOrOrdinary ASCII text.
w6k=éValid UTF-8 for an accented letter.
8J+YgA==😀Valid UTF-8 for an emoji.
QQpCA, line feed, BA newline is part of the decoded text.
/w==ErrorDecoded bytes are not valid standalone UTF-8 text.
8J-YgA==ErrorThe URL-safe hyphen is not supported here.
YQ=ErrorThis padding arrangement is rejected.

Compare the exact string, including case and punctuation, when reproducing an example. Similar-looking input is not necessarily the same byte representation. A missing copied character can change validity, decoded content or both. Keep the original value so a correction does not become an undocumented alteration of your source.

For Unicode output, use the character counter if you need to inspect character totals. The number of encoded characters is not the number of decoded visible symbols. The representation, underlying bytes and displayed text are three different quantities.

Why might valid Base64 still show a UTF-8 error?

Base64 can represent binary data, including an image, archive or a text file using another encoding. This form insists on UTF-8 text after the binary decoding stage. A valid binary payload can therefore be unsuitable for it. Repeatedly deleting characters until the error disappears can corrupt the original value rather than repair it.

Find out what produced the payload. If it represents a file, use an appropriate file-aware decoder that preserves bytes and handles that file type. If it represents legacy-encoded text, use a workflow with the correct documented character encoding. This form has no automatic encoding detection or character-set selector.

Truncated or altered data can also fail the UTF-8 step. A multi-byte character requires a complete valid sequence. A partial copy may leave an incomplete sequence even when much of the Base64 looks plausible. Retrieve the complete intended value through an authorised source rather than filling missing characters by guesswork.

The general error message does not identify which stage failed. Start by checking the payload boundary and expected Base64 variant, then confirm the source's character encoding or file type. Those checks rely on information from the source. They are more reliable than assuming every error means the padding is wrong or that every decodable byte sequence must be English prose. Keep each attempted correction separate from the original for comparison.

MDN's TextDecoder fatal property documentation, checked in 2026, explains strict failure on malformed encoded text. MoneyOr deliberately uses that mode. It does not replace invalid bytes with a placeholder symbol and then present the result as if all text had decoded faithfully.

How are whitespace, missing padding and byte-order marks handled?

The input is trimmed at its outer edges before decoding. The browser's Base64 decoder also accepts certain ASCII whitespace within the encoded string. A checked value with spaces and a line feed between its Base64 characters still decoded to MoneyOr. This permits some wrapped or spaced representations, but it is not a promise that arbitrary inserted characters are ignored.

Some unpadded values are accepted. The tested input TQ produces M, and TWE produces Ma. Other malformed padding arrangements fail, including the tested YQ=. Do not repair an unknown payload by adding or deleting equals signs blindly. Match the source format's actual padding rule.

Acceptance is not strict canonical validation. A tested noncanonical representation, Zh==, decodes to f. If your application must enforce a particular canonical representation, use a validator designed for that contract. Producing readable output is a different requirement from proving that the input used exactly the expected representation.

The UTF-8 decoder also handles an initial byte-order mark. In the checked input 77u/QQ==, the displayed result is A, without a leading visible mark. This is another reason not to treat the displayed text as a byte-preserving reconstruction of an original file. Preserve the original encoded bytes for exact archival or signature work.

Can I decode Base64URL, a data URI or a token automatically?

This form expects the standard alphabet and does not translate Base64URL's hyphen and underscore characters. A URL-safe value may therefore fail here. Do not infer that the source token is invalid solely because this particular standard-Base64 text form rejects it. Use tooling appropriate to the source format.

A data URI contains metadata and a payload separated by a comma. Pasting the complete URI is not supported by this decoder. The tested input data:text/plain;base64,SGk= fails. Identify the payload according to the format, and remember that many data URIs represent binary files rather than UTF-8 prose.

A structured token may use several encoded segments and a signature. This tool does not split those segments, verify the signature or assess expiry and permissions. Reading a decoded segment does not authenticate its claims. Use the original system's authorised verification process when a decision depends on token validity.

URL percent encoding is separate. The URL decoder addresses percent-encoded text, while the URL parser inspects address components. Apply a separate decoding step only when the surrounding format calls for it. Unnecessary decoding can alter characters that were intended literally.

What should I do with the decoded result?

First determine what it represents. If the result is JSON, the JSON formatter can make its nesting readable and the JSON validator can check syntax. Neither establishes that the values are true or satisfy the receiving application's schema.

If it is a URL, inspect its components before using it. If it is ordinary prose, check line breaks and unusual characters before copying. Decoding does not translate, correct or sanitise the result. It also does not remove sensitive information that was present in the original payload.

For an encoding round-trip test, compare the decoded text with the intended text source, rather than assuming the re-encoded Base64 must match every original representation. Accepted whitespace, missing padding or an initial byte-order mark can affect representation comparisons. Define whether you need equivalent text or exactly identical source bytes.

Retain meaningful whitespace when making that comparison. A final decoded newline may be hard to see after the last visible letter, yet it remains part of the text. Copying into another application can add or normalise line breaks as well. Compare in an editor that exposes whitespace when an exact text value is required, and record any deliberate cleanup as a separate transformation.

Use a record of the source format and expected result for repeated debugging. A readable output from one sample does not prove that every payload from the same system is UTF-8 text. Mixed file types or different fields may need different processing. Keep each test tied to the field or format it actually represents.

How do result controls, input size and privacy work?

The form needs no tool account or fee. Copy result copies the displayed value and any details. Download CSV produces a result report; it is not a recovery download of an arbitrary original binary file. Save as baseline keeps a temporary comparison on the current page, and Reset restores starting fields and clears the result.

The decoder does not publish a fixed maximum input length. Practical capacity depends on browser memory and the device. Use an appropriate local workflow for large payloads rather than assuming the form has the same byte limit as the encoder. Their implementations apply different checks.

The decoding operation runs in your browser. Site delivery, analytics and contact handling are separate, as described in the MoneyOr privacy policy. Base64 content can contain secrets even when it looks unreadable. Prefer a harmless sample and keep private credentials out of general-purpose test forms.

Base64 decoder FAQs

Does successful decoding prove the message is genuine?

No. It shows that the supplied value can pass this decoder's representation and UTF-8 steps. It does not identify the author, verify a signature or establish whether the message was altered. Authentication needs the appropriate protocol and trusted verification material, rather than a readable decoded result.

Can it recover an image or PDF as a file?

No file-recovery mode is provided. This form displays UTF-8 text, so binary file content can fail or be unsuitable for display. Use a file-aware decoder for a known file payload. A CSV result report is not a replacement for preserving and reconstructing the original binary bytes.

Why does decoding once reveal another encoded-looking string?

The source may contain more than one representation layer, but appearance alone does not prove that. Follow the source format and keep intermediate values if another authorised step is required. Repeatedly decoding until something looks meaningful can lead to a misleading interpretation of unrelated data.

Will it fix a damaged or incomplete payload?

No. It does not reconstruct missing characters or infer corrupted bytes. Obtain the complete original from its source when possible. A guessed edit that makes the string decode successfully can still produce the wrong content, so success after arbitrary changes is not evidence of recovery.

Can I decode each pasted line independently?

The form treats the input as one encoded value, not a batch of independent records. Some whitespace within that value is accepted. If your input is a list of separate encodings, process those entries through a workflow explicitly designed for batching rather than pasting them together and assuming the boundaries remain meaningful.

Does Base64 decoding remove encryption?

No. It reverses a representation layer, not a cryptographic protection. If the underlying bytes are encrypted, decoding their Base64 does not supply a decryption key. This UTF-8 text form may reject those bytes, and that rejection does not reveal whether the original data was encrypted.

Technical sources

Reviewed on 14 November 2026: MDN Web Docs, Window.atob(), TextDecoder and TextDecoder fatal property. Exact acceptance and rejection examples were checked against MoneyOr's engine. Use the original source format to decide what the resulting text means.