LaTeX Formula Preview

Enter LaTeX formulas and see real-time KaTeX rendering. Supports block and inline display modes.

Local Processing
Files are not uploaded to any server. All operations are performed in your browser.
Loading KaTeX...
Formula rendered successfully

Common Syntax Reference

\frac{a}{b}
Fraction
\sqrt{x}
Square Root
x^{n}
Power/Exponent
x_{n}
Subscript
\int_{a}^{b}
Integral
\sum_{i=1}^{n}
Sum
\lim_{x \to a}
Limit
\begin{pmatrix} a & b \\ c & d \end{pmatrix}
Matrix

How to Use

  1. 1

    Select a sample formula from the dropdown or enter your own LaTeX code.

  2. 2

    Choose display mode: block for standalone formulas, inline for embedded ones.

  3. 3

    Watch the real-time preview below to see how your formula renders.

  4. 4

    If an error appears, check syntax: braces, backslashes, and special characters.

  5. 5

    Click 'Copy LaTeX' to copy the verified code for use in your document.

Use Cases

Verify Before Insert

Preview and verify formula correctness before inserting into papers, slides, or documents.

LaTeX Learning

Learn LaTeX syntax by testing formulas and observing real-time rendering results.

Debug Complex Formulas

Test and debug complex multi-line formulas step by step to identify syntax errors.

FAQ

What is LaTeX formula?
LaTeX is a markup language for typesetting math formulas, widely used in academic papers and scientific documents. KaTeX is a fast web LaTeX renderer.
What syntax is supported?
Supports fractions, roots, powers, integrals, sums, limits, matrices, Greek letters, trigonometric functions and other common math symbols.
What's the difference between block and inline?
Block mode displays formula centered, suitable for standalone formulas. Inline mode embeds formula in text, suitable for formulas within paragraphs.