Logo

Equation Editor for the web

The mathematics layer for the web. The world's most popular equation editor, and the fastest maths rendering. Write it once, and get accessible MathML, SVG or PNG's, and C++ code.

FxEDITOR
Type maths straight into the equation, or write LaTeX markup above it - the two stay in step.
Use <Alt+#> to open toolbar panels, <Tab> to move to the next empty box and then word by word, and <Ctrl+arrow keys> to step through the structure.

Every equation accessible, by default

Equations are MathML, and each one carries generated spoken text. Below is what a screen reader should say for each — generated live by the same converter the editor ships, so what you read here is what your users hear.

Press Tab to step through the equations with a screen reader running.   Full test bench, with all four markup strategies compared →

Store the LaTeX, not the MathML FxTEX

The editor already gives you MathML, so strictly you do not need fxTeX at all. Save what the editor hands you and the job is done.

The catch is what you have saved. \frac{-b\pm\sqrt{b^2-4ac}}{2a} is thirty characters. The MathML for it is 277, across 25 nested elements — and that is what then lives in your database, your page source, and every diff anyone reads for the rest of the site's life. Nobody edits that by hand.

So keep the LaTeX, which stays short, readable and editable, and let fxTeX produce the MathML in the reader's browser instead. The reader gets exactly the same markup; and you keep your source clean.

Two things come with that. Every equation it converts can be wired to straight to fxGraph, and a legacy site full of old equations converts on its next page load — no migration, nothing rewritten.

Add to your page:

<script src="https://fxtex.codecogs.com/fxtex.min.js"></script>
<script>fxTeX.autoRender();</script>

30 kB over the wire — two fifths of KaTeX, a ninth of MathJax. Read the documentation

Your HTML
<p>The quadratic formula solves $ax^2+bx+c=0$
   for $x$, giving
   $$x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$$</p>
On the page

The quadratic formula solves $ax^2+bx+c=0$ for $x$, giving $$x = \frac{-b \pm \sqrt{b^2-4ac}}{2a}$$

Converted in your browser just now, by the two lines on the left. The LaTeX stayed in your HTML - nothing was rewritten, and nothing was fetched.

Or just ask for a picture FxTEX Server

Simple is sometimes best. Three equations on a page do not need a script loading and walking through your HTML to find them — point an <img> at the equation and the equation arrives. There is nothing to install: no maths font, no library, no build step - perfect for blogs, forums and wikis, where adding JavaScript to the page is often impossible.

Running since 2005, now servicing 150,000+ websites and apps.

Your pages stay clean as well, in the database and in the source — one <img> tag per equation, however long the equation is. And if you change your mind: add fxTeX later and it finds those same tags and converts them in place, so the pages you already have give you MathML and spoken text without being rewritten.

And its lightning fast, too. See for yourself →

Add to your page:

<img src="https://fxtex.codecogs.com/svg.image?1+\sin^2(x)"
     alt="1+\sin^2(x)">
On the page
\int_a^b \frac{1}{x}\,dx = \ln\left|x\right| + C

One request, one image. Nothing ran on the page to put it there.

Formats:

  • svga vector image, sharp at any size
  • pnga bitmap, for anywhere that will not take SVG's
  • gifthe same again, older still
  • mathmlthe markup itself

Your editor, any way you like it.

Just the essentials — BIG

Three panels, twice the size, in a colour of their own.

As many rows as you like

Ten panels across three rows — more variety without scrolling sideways.

Built as an API

The editor comes as an API — so build the perfect editor for you. Change colors, font sizes, placement of elements, what in the toolbar, even how users write the equations, and see the output as you need (MATHML, PNG, SVG, etc).

Try the design tool →

From LaTeX to Computational Math—Automatically

You write the LaTeX. We generate the code that runs it, and the calculator that runs the code.

1

What you write

R_{cdf} = 1 - \exp\left[
   -\left(\frac{D}{D_m}\right)^n
\right]

Plain LaTeX, in your page or your database — and what it means, for everyone who does not read LaTeX.

2

What we generate FxCODE

double Rosin_CDF(double Dm, int n, double D)
{
   return 1-exp(-pow(D/Dm,n));
}

fxCode turns a LaTeX equation into a working C++ function. It handles algebra, roots and powers, trigonometric and logarithmic functions, sums and products, limits, derivatives, partial derivatives and integrals — plus whole systems of equations, which it sorts into the right evaluation order. Each part is solved exactly where the mathematics allows, and approximated numerically where it doesn't.

3

What it does FxGRAPH

Plotted live by that function, wired into the CodeCogs code library and its Interactive Calculators.

Seven products, one pipeline

One equation, however you need it delivered.

How we compare

Two comparisons — the editor against the tools people otherwise reach for, and the rendering engine against the other browser engines. Including the two things we do not do yet.

Fast, and right

Speed is the easy half. An engine that renders quickly but quietly mangles a construct nobody tested is worse than a slow one.

So we have run it against 95,811,247 equations. Not a sample chosen to flatter it — everything we could find, including a great many nobody would write on purpose.

Every build is then checked against a corpus of 20,000 drawn from those, picked to span the range of forms and characters people actually write and deliberately including mis-formed ones.

Run the benchmark yourself →

57 equations, on a page the reader has visited before

Getting ready Converting all 57 With spoken text

Temml and KaTeX generate no spoken text.

Ready for developers

Three things you are likely to want, and what each one costs you in code.

Show equations already on your page

Point it at a page that has LaTeX in it. It finds every $…$ and converts it to real MathML, in the reader's browser.

<script src="https://fxtex.codecogs.com/fxtex.min.js"></script>
<script>fxTeX.autoRender();</script>

30 kB. No build step, and no request per equation.

fxTeX documentation →

Let people write them

Five objects — toolbar, markup pane, maths view, output and history — each addressable on its own. Wire up the ones you want and leave out the rest.

const eq = EqEditor.TextArea.link('latexInput');
EqEditor.Toolbar.link('toolbar').addTextArea(eq);
EqEditor.MathView.link('mathview').addTextArea(eq);

That is a complete editor. Everything else is optional.

API reference →

Get the equation back out

One call, nine formats — including MathML with the spoken text a screen reader needs.

output.exportAs('mathmlspeech');

// mathml · latex · url · html
// wp · phpBB · tw · doxygen

Or hand it to a plugin and never call the API at all.

Quickstart →

Free to use for non-commercial work — the API and the plugins. Building something bigger to sell needs a commercial licence, which carries no territorial or volume restriction. Equations you generate can be used for any purpose, anywhere: the licence covers the tools, not their output. Our editor runs entirely offline, converting to MathML within your browser, so your equations stay private.

Already using one of these?