[{"data":1,"prerenderedAt":646},["ShallowReactive",2],{"guide-text-binary-conversion-guide":3},{"id":4,"title":5,"body":6,"date":637,"description":638,"extension":639,"meta":640,"navigation":641,"path":642,"readingTime":371,"seo":643,"stem":644,"__hash__":645},"guides\u002Fguides\u002Ftext-binary-conversion-guide.md","Text to Binary Guide - How Text Encoding to Binary Works",{"type":7,"value":8,"toc":609},"minimark",[9,14,18,27,31,36,48,53,64,69,73,76,82,86,89,95,99,177,187,191,196,200,213,217,232,235,239,243,246,391,395,398,425,428,432,435,439,442,446,518,521,525,529,535,539,546,550,553,557,577,581,587,591,605],[10,11,13],"h2",{"id":12},"what-is-text-to-binary-conversion","What Is Text to Binary Conversion?",[15,16,17],"p",{},"Text to binary conversion transforms readable characters into sequences of 0s and 1s — the language computers actually understand. Every letter, number, and symbol you type has a numeric code, and that code has a binary representation.",[15,19,20,21,26],{},"Our ",[22,23,25],"a",{"href":24},"\u002Ftools\u002Ftext-binary","Text to Binary Converter"," makes this instant. Paste your text, get binary. Paste binary, get text. No signup, no server round-trip — everything runs in your browser.",[10,28,30],{"id":29},"how-text-becomes-binary","How Text Becomes Binary",[32,33,35],"h3",{"id":34},"step-1-character-to-code-point","Step 1: Character to Code Point",[15,37,38,39,43,44,47],{},"Each character maps to a numeric code defined by an encoding standard. The two most important standards are ",[40,41,42],"strong",{},"ASCII"," and ",[40,45,46],{},"UTF-8",".",[15,49,50,52],{},[40,51,42],{}," assigns a number from 0 to 127 to 128 characters — English letters, digits, and common symbols.",[54,55,60],"pre",{"className":56,"code":58,"language":59},[57],"language-text","'A' → 65\n'Z' → 90\n'a' → 97\n'0' → 48\n' ' → 32\n","text",[61,62,58],"code",{"__ignoreMap":63},"",[15,65,66,68],{},[40,67,46],{}," extends ASCII to support every character in the Unicode standard — over 149,000 characters across the world's writing systems. UTF-8 is backward-compatible: any valid ASCII text is also valid UTF-8.",[32,70,72],{"id":71},"step-2-code-point-to-binary","Step 2: Code Point to Binary",[15,74,75],{},"Once you have the numeric code, you convert it to binary. ASCII characters fit in 7 bits but are typically stored in a full 8-bit byte. UTF-8 uses 1 to 4 bytes depending on the character.",[54,77,80],{"className":78,"code":79,"language":59},[57],"Character: 'A'\nCode point: 65\nBinary: 01000001\n\nCharacter: 'é'\nCode point: 233\nUTF-8 binary: 11000011 10101001 (2 bytes)\n",[61,81,79],{"__ignoreMap":63},[32,83,85],{"id":84},"step-3-full-text-conversion","Step 3: Full Text Conversion",[15,87,88],{},"To convert a full string, you process each character individually and join the results.",[54,90,93],{"className":91,"code":92,"language":59},[57],"\"Hi\" →\n'H' → 72  → 01001000\n'i' → 105 → 01101001\nResult: 01001000 01101001\n",[61,94,92],{"__ignoreMap":63},[32,96,98],{"id":97},"ascii-quick-reference","ASCII Quick Reference",[100,101,102,118],"table",{},[103,104,105],"thead",{},[106,107,108,112,115],"tr",{},[109,110,111],"th",{},"Character Range",[109,113,114],{},"Decimal Range",[109,116,117],{},"Binary Pattern",[119,120,121,133,144,155,166],"tbody",{},[106,122,123,127,130],{},[124,125,126],"td",{},"A – Z",[124,128,129],{},"65 – 90",[124,131,132],{},"01000001 – 01011010",[106,134,135,138,141],{},[124,136,137],{},"a – z",[124,139,140],{},"97 – 122",[124,142,143],{},"01100001 – 01111010",[106,145,146,149,152],{},[124,147,148],{},"0 – 9",[124,150,151],{},"48 – 57",[124,153,154],{},"00110000 – 00111001",[106,156,157,160,163],{},[124,158,159],{},"Space",[124,161,162],{},"32",[124,164,165],{},"00100000",[106,167,168,171,174],{},[124,169,170],{},"Newline",[124,172,173],{},"10",[124,175,176],{},"00001010",[15,178,179,180,183,184,186],{},"Notice that flipping bit 5 (adding 32) converts between uppercase and lowercase. ",[61,181,182],{},"A"," (65) becomes ",[61,185,22],{}," (97) with a single bit change.",[10,188,190],{"id":189},"using-the-text-to-binary-converter","Using the Text to Binary Converter",[15,192,20,193,195],{},[22,194,25],{"href":24}," handles both directions:",[32,197,199],{"id":198},"text-to-binary","Text to Binary",[201,202,203,207,210],"ol",{},[204,205,206],"li",{},"Type or paste your text into the input field",[204,208,209],{},"The converter outputs each character as an 8-bit binary group separated by spaces",[204,211,212],{},"Copy the result with one click",[32,214,216],{"id":215},"binary-to-text","Binary to Text",[201,218,219,222,229],{},[204,220,221],{},"Paste binary digits into the input field",[204,223,224,225,228],{},"Format: 8-bit groups separated by spaces (e.g., ",[61,226,227],{},"01001000 01101001",")",[204,230,231],{},"The converter decodes each byte back to its character",[15,233,234],{},"The tool processes everything locally in your browser. Your data never leaves your device.",[10,236,238],{"id":237},"common-use-cases","Common Use Cases",[32,240,242],{"id":241},"developer-debugging","Developer Debugging",[15,244,245],{},"When you work with low-level protocols, file formats, or network packets, you often need to inspect raw binary data. Converting text to binary helps you verify encoding, spot null bytes, or debug misaligned data.",[54,247,251],{"className":248,"code":249,"language":250,"meta":63,"style":63},"language-javascript shiki shiki-themes github-light github-dark","\u002F\u002F Quick check: what does this string look like in binary?\nconst text = 'OK';\nconst binary = text.split('')\n  .map(c => c.charCodeAt(0).toString(2).padStart(8, '0'))\n  .join(' ');\n\u002F\u002F \"01001111 01001011\"\n","javascript",[61,252,253,262,284,310,369,385],{"__ignoreMap":63},[254,255,258],"span",{"class":256,"line":257},"line",1,[254,259,261],{"class":260},"sJ8bj","\u002F\u002F Quick check: what does this string look like in binary?\n",[254,263,265,269,273,276,280],{"class":256,"line":264},2,[254,266,268],{"class":267},"szBVR","const",[254,270,272],{"class":271},"sj4cs"," text",[254,274,275],{"class":267}," =",[254,277,279],{"class":278},"sZZnC"," 'OK'",[254,281,283],{"class":282},"sVt8B",";\n",[254,285,287,289,292,294,297,301,304,307],{"class":256,"line":286},3,[254,288,268],{"class":267},[254,290,291],{"class":271}," binary",[254,293,275],{"class":267},[254,295,296],{"class":282}," text.",[254,298,300],{"class":299},"sScJk","split",[254,302,303],{"class":282},"(",[254,305,306],{"class":278},"''",[254,308,309],{"class":282},")\n",[254,311,313,316,319,321,325,328,331,334,336,339,342,345,347,350,352,355,357,360,363,366],{"class":256,"line":312},4,[254,314,315],{"class":282},"  .",[254,317,318],{"class":299},"map",[254,320,303],{"class":282},[254,322,324],{"class":323},"s4XuR","c",[254,326,327],{"class":267}," =>",[254,329,330],{"class":282}," c.",[254,332,333],{"class":299},"charCodeAt",[254,335,303],{"class":282},[254,337,338],{"class":271},"0",[254,340,341],{"class":282},").",[254,343,344],{"class":299},"toString",[254,346,303],{"class":282},[254,348,349],{"class":271},"2",[254,351,341],{"class":282},[254,353,354],{"class":299},"padStart",[254,356,303],{"class":282},[254,358,359],{"class":271},"8",[254,361,362],{"class":282},", ",[254,364,365],{"class":278},"'0'",[254,367,368],{"class":282},"))\n",[254,370,372,374,377,379,382],{"class":256,"line":371},5,[254,373,315],{"class":282},[254,375,376],{"class":299},"join",[254,378,303],{"class":282},[254,380,381],{"class":278},"' '",[254,383,384],{"class":282},");\n",[254,386,388],{"class":256,"line":387},6,[254,389,390],{"class":260},"\u002F\u002F \"01001111 01001011\"\n",[32,392,394],{"id":393},"learning-computer-science-fundamentals","Learning Computer Science Fundamentals",[15,396,397],{},"Understanding how text maps to binary is foundational. If you are learning about:",[399,400,401,407,413,419],"ul",{},[204,402,403,406],{},[40,404,405],{},"Character encodings"," — ASCII, UTF-8, UTF-16",[204,408,409,412],{},[40,410,411],{},"Data storage"," — how disks and memory represent text",[204,414,415,418],{},[40,416,417],{},"Network protocols"," — how bytes travel across the wire",[204,420,421,424],{},[40,422,423],{},"Cryptography"," — how plaintext feeds into encryption algorithms",[15,426,427],{},"...converting text to binary makes these concepts tangible.",[32,429,431],{"id":430},"encoding-verification","Encoding Verification",[15,433,434],{},"If your application produces garbled text ( Mojibake ), the problem is usually an encoding mismatch. Converting the raw bytes to binary lets you see exactly what data you have, so you can pinpoint where the encoding went wrong.",[32,436,438],{"id":437},"steganography-and-puzzles","Steganography and Puzzles",[15,440,441],{},"Binary-encoded text appears in CTF challenges, puzzle hunts, and steganography. Being able to quickly convert between text and binary is a practical skill for solving these challenges.",[10,443,445],{"id":444},"text-vs-binary-what-changes","Text vs. Binary: What Changes?",[100,447,448,461],{},[103,449,450],{},[106,451,452,455,458],{},[109,453,454],{},"Aspect",[109,456,457],{},"Text",[109,459,460],{},"Binary",[119,462,463,474,485,496,507],{},[106,464,465,468,471],{},[124,466,467],{},"Readable by humans",[124,469,470],{},"Yes",[124,472,473],{},"No (without a converter)",[106,475,476,479,482],{},[124,477,478],{},"Readable by computers",[124,480,481],{},"After decoding",[124,483,484],{},"Natively",[106,486,487,490,493],{},[124,488,489],{},"Storage size",[124,491,492],{},"1 byte per ASCII char",[124,494,495],{},"8 bits per ASCII char",[106,497,498,501,504],{},[124,499,500],{},"Encoding dependence",[124,502,503],{},"Displayed according to encoding",[124,505,506],{},"Raw bit patterns",[106,508,509,512,515],{},[124,510,511],{},"Purpose",[124,513,514],{},"Communication",[124,516,517],{},"Computation and storage",[15,519,520],{},"Text is a human-friendly representation. Binary is the machine-friendly reality underneath. Conversion tools bridge that gap.",[10,522,524],{"id":523},"faq","FAQ",[32,526,528],{"id":527},"does-the-converter-support-non-english-characters","Does the converter support non-English characters?",[15,530,531,532,534],{},"Yes. The ",[22,533,25],{"href":24}," uses UTF-8 encoding, which handles all Unicode characters — including accented letters, CJK characters, and emoji. Non-ASCII characters will produce multi-byte binary sequences.",[32,536,538],{"id":537},"what-format-should-i-use-for-binary-input","What format should I use for binary input?",[15,540,541,542,545],{},"Enter 8-bit binary groups separated by spaces. For example: ",[61,543,544],{},"01001000 01100101 01101100 01101100 01101111"," for \"Hello\". The converter expects exactly 8 bits per group.",[32,547,549],{"id":548},"is-there-a-size-limit-for-conversion","Is there a size limit for conversion?",[15,551,552],{},"There is no hard limit, but inputs above 10,000 characters may slow down your browser. For best performance, keep inputs under that threshold.",[10,554,556],{"id":555},"key-takeaways","Key Takeaways",[399,558,559,562,565,568,571],{},[204,560,561],{},"Every text character has a numeric code point (ASCII or Unicode) that maps directly to binary",[204,563,564],{},"ASCII uses 1 byte per character; UTF-8 uses 1–4 bytes depending on the character",[204,566,567],{},"Flipping bit 5 (adding 32) converts between uppercase and lowercase in ASCII",[204,569,570],{},"Text-to-binary conversion is essential for debugging, learning, and encoding verification",[204,572,573,574,576],{},"The ",[22,575,25],{"href":24}," works both directions, entirely in your browser",[10,578,580],{"id":579},"try-it-yourself","Try It Yourself",[15,582,583,584,586],{},"Ready to see your words in binary? Use our free ",[22,585,25],{"href":24}," — paste any text or binary string and get instant results. No signup needed.",[10,588,590],{"id":589},"related-guides","Related Guides",[399,592,593,599],{},[204,594,595],{},[22,596,598],{"href":597},"\u002Fguides\u002Fbinary-number-system","The Binary Number System: How Computers Think in Zeros and Ones",[204,600,601],{},[22,602,604],{"href":603},"\u002Fguides\u002Fdata-encoding-tools","Data Encoding Tools",[606,607,608],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":63,"searchDepth":264,"depth":264,"links":610},[611,612,618,622,628,629,634,635,636],{"id":12,"depth":264,"text":13},{"id":29,"depth":264,"text":30,"children":613},[614,615,616,617],{"id":34,"depth":286,"text":35},{"id":71,"depth":286,"text":72},{"id":84,"depth":286,"text":85},{"id":97,"depth":286,"text":98},{"id":189,"depth":264,"text":190,"children":619},[620,621],{"id":198,"depth":286,"text":199},{"id":215,"depth":286,"text":216},{"id":237,"depth":264,"text":238,"children":623},[624,625,626,627],{"id":241,"depth":286,"text":242},{"id":393,"depth":286,"text":394},{"id":430,"depth":286,"text":431},{"id":437,"depth":286,"text":438},{"id":444,"depth":264,"text":445},{"id":523,"depth":264,"text":524,"children":630},[631,632,633],{"id":527,"depth":286,"text":528},{"id":537,"depth":286,"text":538},{"id":548,"depth":286,"text":549},{"id":555,"depth":264,"text":556},{"id":579,"depth":264,"text":580},{"id":589,"depth":264,"text":590},"2026-05-28","Learn how text to binary conversion works. Encode text to binary code and decode binary back to readable text.","md",{"immutable":641},true,"\u002Fguides\u002Ftext-binary-conversion-guide",{"title":5,"description":638},"guides\u002Ftext-binary-conversion-guide","QykNSQzpSiFypwFZM1A4DG7UG8U_C9v5i0fB7WBoM-A",1780401330172]