ChemAI — LaTeX Chemistry Editor

Type LaTeX (use \ce{...} for formulas) to render chemical equations. Export to PNG/PDF, copy LaTeX, and use templates/autocomplete.

Designed for chemists, educators, and students, the editor supports mhchem, MathJax, and plain-text output so you can publish balanced reactions anywhere.

Your LaTeX input autosaves locally in this browser so you can pick up where you left off.

Mode:
Templates:
Start typing \ce{ and press Ctrl+Space to open autocomplete.
Rendered output will appear here.

Worked Examples & Templates

Use these LaTeX snippets with \ce{} (mhchem) for fast, accurate chemical typesetting. Follow the steps to render and export.

1) Balance and typeset a combustion reaction (Ethanol)

  1. Insert into the editor: \ce{C2H5OH + 3O2 -> 2CO2 + 3H2O}
  2. Click Render (MathJax mode) to see a beautifully typeset equation.
  3. Export with Export PNG or Export PDF for reports or slides.

Tip: Use -> for forward reactions, <=> for equilibrium, and include states like (g), (l), (s), (aq).

2) Equilibrium reaction with an expression for Ka

  1. Reaction: \ce{CH3COOH + H2O <=> CH3COO^- + H3O^+}
  2. Expression: $$K_a = \frac{[\ce{CH3COO^-}][\ce{H3O^+}]}{[\ce{CH3COOH}] }$$
  3. Click Render to typeset both the reaction and the math expression.

Charges use superscripts: \ce{Fe^{3+}}; isotopes: \ce{^{14}_6C}; hydrates: \ce{CuSO4\cdot5H2O}.

3) Redox half‑reaction in acidic solution

  1. Insert: \ce{MnO4^- + 8H^+ + 5e^- -> Mn^{2+} + 4H2O}
  2. Switch to Plain text mode if you need quick unicode subscripts/superscripts for emails or chats.
  3. Use Copy LaTeX or Copy Plain Text to reuse in other editors.

Quick insert templates

  • Precipitation: \ce{AgNO3(aq) + NaCl(aq) -> AgCl(s) v + NaNO3(aq)}
  • Gas evolution: \ce{2HCl(aq) + Na2CO3(aq) -> 2NaCl(aq) + H2O(l) + CO2(g)}
  • Acid–base: \ce{CH3COOH + NaOH -> CH3COONa + H2O}
  • Complex ion: \ce{Cu^{2+} + 4NH3 <=> [Cu(NH3)4]^{2+}}

Need symbols? Try \alpha, \beta, \Delta H, or matrices/align with standard LaTeX math. If a line doesn’t show math, wrap it in $$ ... $$.

Key Features for Chemistry Formatting

ChemAI's LaTeX chemistry editor is built for instructors, researchers, and lab analysts who need clean, standards-aligned markup for digital and print publishing.

  • Chemically aware autocomplete surfaces mhchem snippets for acid–base, redox, and organic mechanisms as you type.
  • Instant MathJax preview renders balanced chemical equations, isotopes, and equilibrium expressions without leaving your browser.
  • One-click exports provide high-resolution PNG and vector-ready PDF downloads for slide decks, lab manuals, or journal figures.
  • Plain-text fallback keeps unicode subscripts and superscripts intact for LMS discussions, chat apps, and email summaries.

Need a refresher on mhchem syntax? Visit the Learning Resources hub for quick-reference guides and printable cheat sheets.

Popular Use Cases

Lesson planning & worksheets

Create practice questions, kinetic studies, and titration problems with professional typesetting that mirrors textbook quality.

Research communication

Document reaction pathways, mechanistic proposals, and supporting equations for manuscripts or conference posters.

Laboratory handouts

Share safety procedures, stoichiometric setups, and buffer preparations with clear notation that reduces transcription errors.

Online tutoring sessions

Switch to the plain-text mode for live chats, then export a polished MathJax render to recap homework solutions.

Power Chemistry Projects with ChemAI

Combine the LaTeX chemistry editor with companion apps to design cohesive learning experiences, from quizzes to retrosynthesis planning.

Explore the full ChemAI toolkit

Frequently Asked Questions

How do I render mhchem formulas correctly?

Use \ce{...} around chemical expressions and click Render. The editor loads MathJax with mhchem extensions, so charges, states, isotopes, and equilibrium arrows display automatically.

Can I export high-quality graphics for publications?

Yes. Choose Export PNG for slide decks or Export PDF for vector-based figures that stay sharp in journals and posters.

Does the editor save my LaTeX between sessions?

Your latest input is stored locally in the browser using secure localStorage. Reopen the page to continue editing without losing work.