Escape Special Characters for LaTeX

Paste text to escape the characters LaTeX reserves.

Free · Runs in your browser · Your text is never uploaded

Math symbols such as alpha and a less-or-equal sign converted into LaTeX commands

Characters LaTeX treats specially

Ten characters have a special meaning in LaTeX and must be escaped in normal text: & (column separator), % (comment), $ (math), # (parameter), _ (subscript), { and } (grouping), ~ (non-breaking space), ^ (superscript) and \ (command). Pasting text that contains them usually causes errors such as “Missing $ inserted” or “Misplaced alignment tab character &”.

This tool writes \&, \%, \$, \#, \_, \{, \}, \textasciitilde{}, \textasciicircum{} and \textbackslash{}.

Need more options? Open the full Symbols to LaTeX Converter.

Related guides

Frequently asked questions

Why does % break my LaTeX document?

A percent sign starts a comment, so the rest of the line is ignored. Write \% instead.

How do I write an underscore in LaTeX text?

Use \_ in text mode. A bare underscore is only valid in math mode.

Can I escape text that contains math?

Escaping would also escape your math characters. Turn the option off for text that already contains LaTeX.