tex2unicode

A small and rough TeX-to-Unicode converter, mostly useful to write math in emails, on Twitter, and in other similar text-based contexts.


If the “Copy to clipboard” button does not work, your browser probably protects your clipboard. Are you connected to the https version of this page?


Whitespace (spaces, newlines) is always meaningful here, contrary to TeX's behaviour. This is intentional, to allow for some simple formatting. You can use "%" before a newline to make it not matter.

Be aware that commands you define are defined until you reload the page, so you can use them after erasing the field.

There is no text-mode/math-mode (don't write any $ symbol or they will be visible!), everything behaves more or less like text-mode but where math symbols are surrounded by $'s automatically.

Main features: Unicode equivalents for many math symbols, support of various “charsets” (see below), rough approximation of TeX’s grammar (try \def !)

Currently implemented “charsets”: exponents (^), indices (_), bold (\textbf), italic (\textit) + its bold variant, calligraphic (\mathcal) + its bold variant, fraktur (\mathfrak) + its bold variant, blackboard-bold (\mathbb), smallcaps (\textsc), teletype/monospace (\texttt), characters with tilde (\tilde), characters with bar (\bar), characters with hat (\hat).

Not yet implemented: More charsets (sans-serif/sans-serif-bold, underline, dot, ddot), ability to define commands with arbitrary arity (currently, def only supports arity 0) and with optional arguments, ability to force default charset (for textrm/mathrm?).

Please inform me of bugs or missing symbol/feature at my mail address math[at]beranger-seguin[dot]fr.
If you are unsatisfied with my script, you can check unicodeit and tex-to-unicode which offer similar services.