.AUX

AUX File

LaTeX/TeX Auxiliary References File
Ask a question
QUICK ANSWER

A .aux file is generated automatically by LaTeX when compiling a .tex document. It stores cross-reference labels, page numbers, and citation keys so LaTeX can resolve them on a second pass. You do not open or create .aux files yourself. If one causes a compilation error, delete it and recompile.

Developer: N/A (generated by TeX/LaTeX engines: pdfTeX, XeTeX, LuaTeX) Category: Settings Files Open standard MIME: text/plain
OPENS ON Windows macOS Linux
Related: .ICA · .DS_STORE · .WMZ · .CFG

On this page

19k+ extensions indexed
Last reviewed Jul 9, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the AUX file format?

An .aux file is a plain-text auxiliary file automatically generated by LaTeX during document compilation. It acts as a communication channel between successive compilation passes, storing data that LaTeX writes on one run and reads back on the next to resolve forward references.

The .aux file contains a sequence of LaTeX macro calls, most commonly:

  • \newlabel{key}{{number}{page}} - stores cross-reference data for \ref and \pageref
  • \citation{key} - records every \cite{} call found in the document
  • \bibcite{key}{label} - stores resolved citation labels returned by BibTeX or Biber
  • \@writefile commands - writes entries for the table of contents (.toc), list of figures (.lof), and list of tables (.lot)

Because LaTeX resolves cross-references by reading the .aux from the previous run, at least two compilation passes are required to produce correct reference numbers. A third pass may be needed after BibTeX or Biber processes citations.

The .aux file is a compilation artifact - users never create or edit it manually. If it becomes corrupted (for example after an interrupted compile), deleting it and recompiling resolves most LaTeX errors. It should be excluded from version control (add .aux to .gitignore). Tools such as latexmk manage multiple passes and .aux handling automatically.

The format is compatible with all standard LaTeX engines: pdflatex, xelatex, and lualatex.

Security & safety

RISK: LOW

Plain text file containing only LaTeX macro calls - no executable code. A maliciously crafted .aux file could in theory inject arbitrary LaTeX commands if a user manually inputs it to LaTeX, but this is an extremely theoretical attack vector. In normal LaTeX workflows, .aux is generated and consumed by the LaTeX engine itself.

Format details

in a nutshell
FULL NAMELaTeX/TeX Auxiliary References Fileaka .aux file, LaTeX aux file
DEVELOPERN/A (generated by TeX/LaTeX engines: pdfTeX, XeTeX, LuaTeX)since 1978 (TeX 1.0 by Donald Knuth); LaTeX extension by Leslie Lamport, 1984
MIME TYPEtext/plain
TYPEPlain text (LaTeX commands)
STANDARDOpen · royalty-free
This extension is also used by…
  • AutoCAD auxiliary file - AutoCAD and other CAD programs use .aux for auxiliary/helper data files, unrelated to TeX.
  • Windows auxiliary file (system) - Various Windows applications use .aux as a generic auxiliary/helper data extension.

Programs that open AUX files

Windows4 apps
MiKTeX Open-source MiKTeX reads/writes .aux automatically during pdflatex/xelatex compilation. Inspect contents in any text editor.
TeXworks Open-source Open .aux in TeXworks as a plain text file for inspection. Compilation produces .aux automatically.
Notepad Open-source Open .aux as plain text to inspect cross-reference and citation data.
TeXstudio Open-source TeXstudio compiles .tex and produces .aux; right-click in file browser to open .aux for inspection.
macOS2 apps
TeXworks Open-source Available on macOS; compiles .tex and produces .aux.
MacTeX (TeX Live for macOS) Open-source pdflatex/xelatex generates .aux automatically. Use TeXShop or any text editor to inspect.
Linux2 apps
TeX Live Open-source pdflatex/xelatex/lualatex generate .aux automatically. Inspect with any text editor.
latexmk (automation) Open-source latexmk -pdf document.tex - automatically runs the correct number of passes and manages .aux; included in TeX Live.

Technical details

deep spec
EncodingPlain text (UTF-8 or ASCII depending on LaTeX installation and document encoding)
Format typePlain-text LaTeX macro syntax - readable in any text editor
ContainerNone - bare text file
Generated bypdfTeX, XeTeX, LuaTeX during LaTeX document compilation
Typical first line\relax, or the first \citation{} command if the document has citations
Cross-reference macro\newlabel{key}{{number}{page}} - written by LaTeX, read back to resolve \ref and \pageref
Citation recording\citation{key} written during first pass; read by BibTeX or Biber to generate the .bbl file
Multi-pass requirementMinimum 2 LaTeX runs needed for correct cross-references; 3+ when bibliography tools are involved
Typical file size1 KB - 500 KB (grows with document length and number of cross-references and citations)
OS compatibilityWindows, macOS, Linux (cross-platform - identical format across all TeX engines)
Manual editingNot intended for manual editing - generated and managed entirely by the LaTeX engine
Safe to deleteYes - automatically rebuilt on next compilation run; delete to force clean recompilation
Released1978 (TeX 1.0 by Donald Knuth); LaTeX extension by Leslie Lamport, 1984
Latest versionN/A - format is a side-effect of TeX/LaTeX compilation, not versioned
Open standardYes · royalty-free
Specificationwww.latex-project.org

AUX conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with AUX files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about AUX files.

Frequently asked questions

Can I delete the .aux file?
Yes - LaTeX regenerates it on the next compilation run. Deleting it is the standard fix when .aux becomes corrupt or out-of-sync after an interrupted compile.
Why does LaTeX say 'undefined reference'?
Cross-references resolve on the second pass. Run LaTeX twice (or use latexmk). If warnings persist, the .aux may be stale - delete it and recompile twice.
Should I commit .aux to Git?
No - .aux is a build artifact. Add *.aux to .gitignore. The .tex source is the authoritative file; .aux is derived.
What is the difference between .aux, .bbl, and .toc?
.aux is the master auxiliary file storing cross-refs and citation keys. .bbl is the formatted bibliography generated by BibTeX/Biber from .aux. .toc contains table-of-contents entries. All are build artifacts.
Why does my .aux file keep changing in Git?
Because it is regenerated on every compile. Add it to .gitignore to prevent tracking.

References

1LaTeX Project - Auxiliary files overviewwww.latex-project.org
2Dick Imaw Books - LaTeX for Complete Novices: Auxiliary Fileswww.dickimaw-books.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.MDMarkdown Document
9.RPMSGRestricted Permission Message
10.TMPTemporary File

Related extensions

.ICACitrix Independent Computing Architecture file
.DS_STOREmacOS Finder Desktop Services Store (.DS_Store)
.WMZWindows Media Player Skin
.CFGConfiguration File
.LICLicense File
.CONFConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z