Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Latex Editor


Click buttons to build LaTeX formulas. Each line is its own equation; the active line (highlighted) receives button inserts.
Per line: use the amber button to clear a line and the red × to remove it. The up/down arrows reorder lines. Click + Add line for a new equation. The combined LaTeX source below joins all lines with \\. Hover any button for a short description.

Basic

Loading math editor…
LaTeX Source
LaTeX source appears here…







Key Terms

LaTeX - A typesetting system for mathematics and technical writing. Math expressions are written as plain text using backslash-prefixed commands.

Math Field - The editable region that renders LaTeX as formatted mathematics in real time. Backed by MathLive in this editor.

Symbol Palette - The grid of buttons grouped by category (basic, Greek, calculus, sets, matrices, and more) that insert LaTeX snippets into the active line.

Active Line - The currently focused equation line, highlighted in blue. Buttons and caret commands act on this line only.

Placeholder Slot - The shaded box that appears after inserting a template like a fraction. Type to fill it, or press Tab to move to the next slot.

LaTeX Source - The combined plain-text LaTeX for all lines, joined with double-backslash line breaks. The source updates live and copies to clipboard with one click.

Getting Started

The editor opens with one empty equation line ready for input. Click anywhere inside the math field to set focus, then start typing or click a symbol button.

Three input paths:
• Type directly. Standard letters, numbers, and operators (+, -, =, /, *) work as expected.
• Click any symbol button to insert that LaTeX snippet at the caret. Templates with empty slots (like fractions and roots) drop a placeholder you can fill immediately.
• Mix both freely. Type a variable, click the fraction button, type the numerator, press Tab, type the denominator.

The active line. Only one line receives input at a time. Its row is outlined in blue. Click any other line to switch focus. Symbol buttons always insert into the active line, never into a row you can see but haven't clicked.

The footer below the lines area always shows the + Add line button, even when the lines scroller is full.

Choosing a Symbol Category

The category strip above the keyboard groups symbols into related sets. Click any category to swap the visible button grid; the active category is highlighted in blue.

Common category types:
Basic - Common operators, equals variants, fractions, exponents, and parentheses.
Greek - Lowercase and uppercase Greek letters used throughout mathematics and physics.
Calculus - Integrals, derivatives, limits, partial derivatives, and series notation.
Sets and logic - Set builder, union, intersection, quantifiers, and logical connectives.
Matrices - Bracket and parenthesis matrix templates of various sizes.
Relations and arrows - Inequalities, approximations, mappings, and directional arrows.

Hover any button to see its name and a short description in a tooltip. The category palette is searchable visually - if you cannot remember which category holds a symbol, scan the grids until you spot it.

Inserting Symbols and Templates

Two kinds of buttons sit in the palette: plain inserts and templates with slots.

Plain inserts drop a single character or command at the caret. Example: clicking the Greek alpha button inserts the Greek letter alpha exactly where the cursor sits.

Templates with slots drop a structure with one or more empty placeholders. Example: clicking the fraction button inserts a fraction structure, focuses the numerator slot, and waits for input. Press Tab to jump to the denominator, or click the denominator directly.

Slot navigation tips:
• Tab moves forward through slots in the inserted template.
• Shift-Tab moves backward.
• Clicking inside any slot focuses it directly.
• Typing inside an empty slot fills it; the placeholder disappears.

Nesting. Templates compose freely. Insert a square root inside a fraction's numerator, an integral whose bounds are themselves fractions, a matrix whose entries are exponential expressions - the editor handles arbitrary depth.

Managing Multiple Equation Lines

The editor supports any number of equation lines, each independently editable. Lines are numbered down the left margin.

Per-line controls (right side of each row):
Up arrow - Move this line one position higher.
Down arrow - Move this line one position lower.
Amber circular arrow - Clear the contents of this line, keeping the row in place.
Red times - Remove this line entirely. Disabled when only one line remains.

Adding lines. Click + Add line in the footer (always visible, even when the lines scroller is full) to append a new empty line at the end. To insert a new line right after the current one, click the curly-return navigation button in the action bar.

Scrolling. When you have more than six lines, the lines area scrolls vertically. The scrollbar is hidden visually but scrolling works as usual with mouse wheel, trackpad, touch, or keyboard.

The combined LaTeX source below joins all lines with a double-backslash, the standard LaTeX line break inside math environments.

Caret Navigation and Editing

Four action buttons sit below the source area for editing the active line without using the keyboard.

Left arrow - Move the caret one position to the left. Works through nested structures: when the caret reaches the boundary of a fraction's numerator slot, the next left press takes it out of the fraction entirely.

Right arrow - Move the caret one position to the right, with the same nested-structure traversal.

Backspace icon - Delete the character immediately before the caret. Holding the keyboard Backspace key does the same. When the caret sits at the start of a template, pressing backspace removes the surrounding structure.

Curly return - Insert a new equation line right below the current one and focus the new line.

Clear all (red button) - Wipe every line and start over with a single empty line. This is destructive and cannot be undone, so confirm the source has been copied first if you need it.

Keyboard shortcuts (arrow keys, Home, End, Tab) work as expected inside any math field.

Copying the LaTeX Source

Below the lines area sits the LaTeX Source panel, which shows the combined source for all lines as plain text.

How the combined source is built. Each line's individual LaTeX is concatenated with a double-backslash separator and a newline. This matches the convention for multi-line equations inside LaTeX environments like align, gather, and array. Pasting the result into a LaTeX document inside such an environment renders the equations correctly.

The Copy button in the top-right of the source panel writes the entire source to the system clipboard. The button briefly turns green and reads Copied! to confirm. After a few seconds it reverts to its normal state, ready to copy again.

Manual copy. If clipboard access is blocked (some browsers require user interaction or a secure context), select the source text and copy with Ctrl-C or Cmd-C.

Source format. The source is canonical LaTeX with no extra markup, ready for direct paste into MathJax, KaTeX, Overleaf, Authorea, or any standard LaTeX document.

What is LaTeX?

LaTeX is a typesetting system for mathematics, science, and technical writing. Created by Leslie Lamport in the 1980s on top of Donald Knuth's TeX, it became the dominant format for scientific publishing.

The core idea. Math is written in plain text using backslash-prefixed commands. The fraction one over two is written as backslash-frac{1}{2}. The integral from zero to one of x squared dx is written as backslash-int_0^1 x^2 dx. The source is portable, version-controllable, and readable by humans and machines alike.

Why it matters. Equation typesetting in word processors is slow and fragile across platforms. LaTeX produces consistent, publication-quality output and is the standard format expected by journals, textbooks, and academic websites.

Where this editor fits. Writing LaTeX by hand requires memorizing dozens of commands. A visual editor like this one lets you build expressions by clicking and see the rendered result in real time, then copy the source when ready.

Common LaTeX Patterns

A small set of patterns covers most everyday math typesetting.

Subscripts and superscripts. Use underscore for subscript and caret for superscript: x_1 for x with subscript 1, x^2 for x squared. For multi-character subscripts, wrap in braces: x_{ij}.

Fractions. backslash-frac{numerator}{denominator}. Nested fractions work the same way - put another backslash-frac inside.

Square roots and nth roots. backslash-sqrt{x} for square root, backslash-sqrt[n]{x} for the nth root. The optional argument in brackets sets the index.

Greek letters. Lowercase Greek is backslash-letter-name: backslash-alpha, backslash-beta, backslash-pi. Uppercase Greek capitalizes the first letter: backslash-Gamma, backslash-Sigma.

Sums and integrals. backslash-sum for sigma, backslash-int for integral. Limits go on the operator as subscript and superscript: backslash-sum_{i=1}^{n} or backslash-int_0^infinity.

Matrices. Inside a pmatrix or bmatrix environment, use ampersand to separate columns and double-backslash to separate rows.

These six patterns plus a handful of operators cover the vast majority of practical needs.

Workflow Tips

A few practices that save time when working with the editor.

Build big expressions in pieces. Insert the outer structure first - the fraction, the integral, the matrix - then fill the inner slots. This is faster than typing a long string and trying to wrap it later.

Use multiple lines for multi-step derivations. Each step of an algebraic manipulation goes on its own line. Reorder freely with the up and down arrows. The combined source is ready to paste into an align environment.

Copy frequently. The Copy button writes the entire source to clipboard. Use it as a checkpoint - copy after each major addition so you have a snapshot in case you need to revert.

Hover before clicking. Tooltips on every button explain what each symbol does. Hovering for a moment costs less than inserting the wrong symbol and deleting it.

Clear, don't delete. The amber per-line clear button empties a line without removing the row, keeping your line numbering stable. Use the red times only when you actually want fewer lines.

Related Tools

Math Symbols Reference - Catalogs of LaTeX command names organized by topic. Useful when you know the symbol's visual shape but cannot recall its command name.

Formula Pages - Domain-specific formula collections (algebra, probability, calculus) where each formula is rendered alongside its LaTeX source. Browse for patterns you can copy and adapt.

Definition Glossaries - Mathematical-term glossaries where each entry shows the standard notation. Pair with this editor when you need to write something you have only seen rendered, not coded.

KaTeX and MathJax - Two open-source LaTeX-to-HTML renderers used by educational and publishing sites. The source from this editor pastes directly into either system without modification.

Overleaf - An online LaTeX document editor for full papers, articles, and books. The math source from this editor copies into Overleaf documents inside align or equation environments.