---
title: "Discussion on \"Strict vs Lenient Base64 Validation: Why \"QQ==\" and \"QR==\" Both Decode to \"A\"\" | Hashnode"
description: "Discussion on \"Strict vs Lenient Base64 Validation: Why \"QQ==\" and \"QR==\" Both Decode to \"A\"\". Ask three Base64 decoders whether a string is valid and you can get three different answers. Browsers' atob() happily accepts a missing =. Python's b64decode() rejects it. And almost every decoder agr"
url: "https://hashnode.com/posts/strict-vs-lenient-base64-validation-why-qq-and-qr-both-decode-to-a/6afbded1b2632e64b3786ce4"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Strict vs Lenient Base64 Validation: Why "QQ==" and "QR==" Both Decode to "A"](https://mindvsdrivetools.hashnode.dev/strict-vs-lenient-base64-validation-why-qq-and-qr-both-decode-to-a?utm_source=hashnode&utm_medium=feed)

Ask three Base64 decoders whether a string is valid and you can get three different answers. Browsers' atob() happily accepts a missing =. Python's b64decode() rejects it. And almost every decoder agr

Nov 17 · 6 min read · mindvsdrivetools.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#security](https://hashnode.com/tag/security)
-   [#base64](https://hashnode.com/tag/base64)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Mind vs Drive](https://hashnode.com/@mindvsdrive)

@mindvsdrive

  
[View profile](https://hashnode.com/@mindvsdrive)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
