LogoKruti Dev To Unicode

Unicode to Boishakhi

Turn standard Unicode Bengali into legacy Boishakhi byte text that renders correctly once the Boishakhi font is installed. Live preview pauses above 20,000 characters, so long files convert on demand.

What Unicode to Boishakhi Does to a Bengali Document

Unicode to Boishakhi is a browser-based converter that rewrites standard Unicode Bengali text into the ASCII byte sequence a legacy Boishakhi font expects, so manuscripts prepared in modern editors can be re-laid out in older DTP templates without retyping. It runs entirely in the page: the engine maps each Unicode code point to its Boishakhi glyph key, reorders pre-positioned vowel signs, and relocates the reph marker before any output appears. A 200 ms debounce keeps typing responsive, and the live preview stops at 20,000 characters so the browser never stalls on a long chapter. Once the result looks right, one click copies it or exports a .doc file you can open in Word and set to the Boishakhi font. The conversion is lossy and cannot be reversed exactly, so keep the original Unicode file as your reference before you hand the Boishakhi text to a printer or an archive system.

What Unicode to Boishakhi Actually Changes in Your Text

The converter swaps characters; it does not touch layout. The engine reads the textarea on the left, walks the string, and replaces each Bengali code point with the ASCII key that a Boishakhi font draws as the matching glyph. Spaces, tabs, and line breaks pass through untouched, so the paragraph structure of your source survives. The result lands in a read-only output box, which is why clicking inside it and typing does nothing. Five controls drive the workflow: Convert to Boishakhi forces a full pass, Copy Input grabs the source string, Clear empties both panes at once, Copy Result writes the converted text to the clipboard, and Download Word saves it as a .doc file. The panel also converts on its own after a 200 ms debounce, so short paragraphs refresh without a click. Every one of those actions runs locally; the conversion function is called in the page and no text leaves the tab. Editing the input after a copy does not update the clipboard — press Copy Result again to capture the new output.

Why Live Conversion Pauses at 20,000 Characters

The live preview is capped at 20,000 characters per conversion. Below that threshold the panel fires the converter 200 ms after your last keystroke, which keeps short edits instant without re-running the mapping table on every character. Above the cap Unicode to Boishakhi stops auto-converting, clears the output box, and shows a toast telling you to press Convert manually. That gate exists because the mapping pass is synchronous JavaScript on the main thread; running it on a 60,000-character chapter after every keystroke would lock scrolling and typing. The check compares the raw textarea string length, so spaces, punctuation, and line breaks count toward the 20,000 limit alongside the Bengali characters themselves. Once you press Convert, the full text is processed in one pass regardless of length. The toast disappears after 2.5 seconds, so the instruction does not linger over the output area — if you paste a long file and see an empty result box with no message, it has already timed out.

What the Boishakhi Output Looks Like at the Byte Level

Everything in the output box is printable ASCII, not Unicode Bengali. That is the whole point of the mapping: the string looks like Latin gibberish in a normal font and only resolves into Bengali once the Boishakhi typeface is applied. The result box deliberately renders in a monospace stack — Courier New, then Courier, then generic monospace at 1.05rem with 0.5px letter spacing — so you can see the underlying ASCII characters instead of a decorative font hiding them. When you press Download Word, the page writes a Blob of type text/plain;charset=utf-8 and saves it with a .doc extension; it does not emit a binary Word file. Word opens it as plain text, and you apply Boishakhi to the paragraph font to make it readable. No byte-order mark is prepended, because the content is ASCII and a BOM would surface as stray characters inside the converted line.

Which Bengali Text Converts Cleanly and Which Does Not

The mapping table covers the everyday inventory: consonants, independent vowels, vowel signs, Bengali digits, punctuation, and the common conjuncts. Pre-positioned vowel signs are reordered and the reph marker is relocated during the pass, which is what makes ordinary prose and news copy come out in the right visual order. The edge cases sit elsewhere. Clusters of three or more consonants are the usual failure point, because Boishakhi's glyph set does not have a one-to-one key for every rare ligature. Text typed with visually identical but technically different code points can also drift, especially when the source was hand-typed rather than pasted from a single editor. Mixing the two encodings inside one paragraph is the fastest way to break a line — a single Unicode Bengali character dropped into a Boishakhi run renders as the wrong glyph or a blank box, because the font has no key for that code point. The conversion is also lossy: the byte stream cannot be mapped back to the exact original code points, so the source file stays your only reliable reference.

If the Converted Text Shows Garbage, Check in This Order

The most common failure is not a bad conversion but a missing font, so check the typeface before you re-run anything. Step one: confirm the viewing application has Boishakhi installed and that the font is applied to the converted run rather than to the whole document. Step two: select the entire paragraph and re-apply the font, because a single pasted character carrying a Unicode font override will break the line even when the bytes underneath are correct. Step three: look for stray Unicode Bengali characters left inside the Boishakhi text — one is enough to shift every following glyph. Step four: inspect the three-consonant clusters and any ligature you typed by hand, since those are the cases the mapping table is least likely to resolve. Step five: compare against the original Unicode file and fix the residual clusters manually. Re-running Convert will not fix a font or mixed-encoding problem, and re-converting an already-converted string produces double-mapped junk.

Questions Readers Ask Before Pasting a Chapter

Does the converter send my text to a server?

Unicode to Boishakhi processes the text inside the page. The conversion function is imported from a local module and called directly against the textarea value; there is no fetch, XHR, or WebSocket call in the component. That means the pasted Bengali text is never uploaded, logged, or stored beyond the lifetime of the tab. The practical consequence is that closing the tab discards everything — there is no server-side history to recover from — so copy the output or download the .doc file before you navigate away.

Is the downloaded .doc a real Word binary?

The Download Word button produces a plain-text file with a .doc extension, not an OOXML or legacy binary Word document. The Blob is created with the MIME type text/plain;charset=utf-8 and no byte-order mark, so what you get is the ASCII Boishakhi string exactly as it appears in the result box. Word opens it without complaint and treats it as plain text; you then select the text and apply the Boishakhi font to make it legible. If a recipient needs a true .docx container, paste the copied result into a blank Word document and save it yourself.

Why is the result shown in a monospace font?

The result box is styled with a monospace stack — Courier New first, then Courier, then the generic monospace family — at 1.05rem with 0.5px letter spacing. That is a deliberate choice: the output is ASCII, and a proportional or decorative font would disguise which characters were actually produced, making it harder to spot a stray Latin letter or a missed mapping. Monospace keeps every character the same width, so the column-like alignment inside a converted line stays visible and you can compare output against input line by line.

What happens if the browser denies clipboard access?

Both copy buttons try navigator.clipboard.writeText first. If the promise rejects — which happens on insecure origins, in some embedded webviews, or when the user has denied the clipboard permission — the component falls back to a hidden textarea, selects its contents, and calls document.execCommand('copy'). That legacy path works in most desktop browsers but is not guaranteed on mobile Safari. Because the fallback reports success whether or not the copy actually took, the practical check is to paste into a scratch field and confirm the text arrived before you close the page.

Do Clear and Convert reset the same fields?

Clear empties both the input and the output textareas and cancels any pending debounce timer, so no stale conversion fires after you wipe the panel. Convert only writes to the output box — it never modifies, trims, or reorders the input text, so you can press it repeatedly and still have your original Unicode string intact for comparison. Copy Input and Copy Result are read-only in the same sense: they touch the clipboard but leave both textareas alone. The one asymmetry is the 20,000-character gate, which clears the output but keeps the input so you can still trigger a manual pass.

Does the conversion cover Bengali digits and punctuation?

The mapping table is documented as covering consonants, independent vowels, vowel signs, Bengali digits, punctuation, and common conjuncts, so ordinary prose, dates, and numbered lists come through without manual patching. What it does not guarantee is every rare ligature or every visually similar code-point pair, which is why a proofreading pass is still required for legal, academic, or examination text. Bengali digits make a good quick test: convert a line containing a date and a list number, then confirm both render as digits rather than as stray ASCII letters once the Boishakhi font is applied.