---
title: "Discussion on \"Why btoa() Fails on Emoji and Hindi (and Quietly Gets \"café\" Wrong): Base64-Encoding Unicode Text the Right Way\" | Hashnode"
description: "Discussion on \"Why btoa() Fails on Emoji and Hindi (and Quietly Gets \"café\" Wrong): Base64-Encoding Unicode Text the Right Way\". Disclosure: I built the free Base64 Encoder on base64decodetool.com that I use for checks in this post.\nIf you've ever called btoa() on user input in the browser, you've probably seen this:\nUncaught I"
url: "https://hashnode.com/posts/why-btoa-fails-on-emoji-and-hindi-and-quietly-gets-caf-wrong-base64-encoding-unicode-text-the-right-way/6af4216d0947d3b2e5a546dd"
---

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

Discussion

# [Why btoa() Fails on Emoji and Hindi (and Quietly Gets "café" Wrong): Base64-Encoding Unicode Text the Right Way](https://mindvsdrivetools.hashnode.dev/why-btoa-fails-on-emoji-and-hindi-and-quietly-gets-caf-wrong-base64-encoding-unicode-text-the-right-way?utm_source=hashnode&utm_medium=feed)

Disclosure: I built the free Base64 Encoder on base64decodetool.com that I use for checks in this post. If you've ever called btoa() on user input in the browser, you've probably seen this: Uncaught I

1d ago · 6 min read · mindvsdrivetools.hashnode.dev  
Read the article

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

## Written by

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

@mindvsdrive

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
