---
title: "Discussion on \"Text to Binary: What Actually Happens When You Encode a String\" | Hashnode"
description: "Discussion on \"Text to Binary: What Actually Happens When You Encode a String\". The three steps from a character to eight bits, the UTF-8 trap, and how to convert both ways in JavaScript."
url: "https://hashnode.com/posts/how-to-read-binary-code/6a93ddd90fe06c4affc210ca"
---

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

Discussion

# [Text to Binary: What Actually Happens When You Encode a String](https://simrankaur.hashnode.dev/how-to-read-binary-code?utm_source=hashnode&utm_medium=feed)

The three steps from a character to eight bits, the UTF-8 trap, and how to convert both ways in JavaScript.

Aug 30 · 3 min read · simrankaur.hashnode.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#webdev](https://hashnode.com/tag/webdev)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#computer-science](https://hashnode.com/tag/computer-science)

## Written by

[Simran Kaur](https://hashnode.com/@simrankaur453)

@simrankaur453 · india

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

I'm a science graduate with a Master's in Zoology from Sant Baba Bhag Singh University, currently exploring the intersection of technology, business analytics, and data-driven innovation. As the Founder &amp; CEO of Pixellize.io, I build AI-powered web tools, digital products, and productivity solutions focused on user experience, automation, and modern web technologies. Passionate about solving real-world problems through research, analytical thinking, and technology, with growing interests in healthcare, life sciences, AI, and business analytics.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
