$npx skillfedfor your agent

latex2mathml

Pure Python library for LaTeX to MathML conversion

Worth itPyPI Python ModulesReleased Apr 20264.7M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — latex2mathml-3.81.0-py3-none-any.whl
v3.81.0 · released 2026-04-15 · Python >=3.10

Yes. The package has no dependencies, low install friction, active maintenance, a permissive MIT license, and no known vulnerabilities. Install it if you need to convert LaTeX math to MathML; the main unknown is the breadth of LaTeX syntax it handles, which you should verify against your specific use cases.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction install with no runtime dependencies.
  • Actively maintained with recent releases and a stable codebase.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions.

last release 2026-04-15 (121 days) · last repo commit 2026-08-14 · 245 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,666,350 downloads/mo, #2,260 on PyPI

Verify before relying

pip install latex2mathml

import latex2mathml.converter
latex_input = r"\frac{a}{b}"
mathml_output = latex2mathml.converter.convert(latex_input)
  • Extent of LaTeX syntax coverage (which commands and environments are supported).
  • Performance characteristics with large or complex mathematical expressions.
  • Accuracy of MathML output for edge cases or advanced LaTeX constructs.
Same gist for agents: .md · .json

What it is and what it does

latex2mathml is a pure Python library that translates LaTeX mathematical notation into MathML, the W3C standard markup language for mathematics. It runs with no external dependencies and offers both a programmatic API and a command-line interface, making it suitable for embedding in applications or batch-processing LaTeX documents.

The library is actively maintained, supports current Python versions (3.10 through 3.14), and has been in development since 2016. It handles the conversion at the syntax level without requiring a LaTeX engine, making it lightweight and portable. Users can pass LaTeX strings directly to the converter function, read from files, or pipe input via the command line.

Use it for

  • Convert LaTeX math expressions in Jupyter notebooks or documentation to web-compatible MathML for rendering.
  • Batch-process academic papers or textbooks to extract and convert mathematical notation for digital publishing.
  • Embed in web applications or CMS platforms to accept LaTeX input and serve MathML to browsers.
  • Generate MathML from user-submitted LaTeX formulas in educational or scientific software.
  • Automate translation of legacy LaTeX documents to formats that require MathML markup.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package has no dependencies, low install friction, active maintenance, a permissive MIT license, and no known vulnerabilities. Install it if you need to convert LaTeX math to MathML; the main unknown is the breadth of LaTeX syntax it handles, which you should verify against your specific use cases.

Install

latex2mathml on PyPI

Before you install

Low friction install with no runtime dependencies. Actively maintained with recent releases and a stable codebase.

Requires Python 3.10 or later.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions.

Quickstart

pip install latex2mathml

import latex2mathml.converter
latex_input = r"\frac{a}{b}"
mathml_output = latex2mathml.converter.convert(latex_input)

Verify before relying

  • Extent of LaTeX syntax coverage (which commands and environments are supported).
  • Performance characteristics with large or complex mathematical expressions.
  • Accuracy of MathML output for edge cases or advanced LaTeX constructs.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 121 days since the last release
Last repo commit
First released
Downloads4,666,350 / month, #2,260 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonTopic :: Scientific/Engineering :: MathematicsTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: Markup :: HTMLTopic :: Text Processing :: Markup :: LaTeX

Evidence: latex2mathml-3.81.0-py3-none-any.whl

Tags

Capabilities
latex to mathml conversionconvert latex math to mathmllatex mathml converterpure python latex convertermathml generation from latexlatex equation to mathml
Topics
latex-conversionmarkup-generation
PyPI keywords
latexmathml

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “latex to mathml conversion”

  • latex2mathmlConverts LaTeX mathematical expressions to MathML format, available…
  • py-asciimathConverts between ASCIIMath, LaTeX, and MathML mathematical notation…
  • pypptx-with-oxmlReads, creates, and updates PowerPoint (.pptx) files, with…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also py-asciimath · pypptx-with-oxml · math-verify · latex2sympy2-extended · latex2sympy2 · sphinxcontrib-jsmath · sphinx-math-dollar · ansi2html · pylatexenc · sphinxcontrib-katex