LaTeX Matrix Generator
Build pmatrix, bmatrix, and vmatrix environments.
Loading tool…
About this tool
Type one matrix row per line with values separated by spaces or commas, choose a bracket style and get the amsmath environment.
How to use
1
Step 1
Enter one row per line.
2
Step 2
Choose pmatrix, bmatrix, vmatrix or another environment.
3
Step 3
Press Generate and paste into math mode.
How it works
pmatrix uses round brackets, bmatrix square brackets, Bmatrix braces, vmatrix a determinant bar and Vmatrix a double bar. All need amsmath. Cells are separated by & and rows by \\.
\begin{pmatrix} a & b \\ c & d \end{pmatrix}Worked example
A 3 × 3 identity as a determinant
- Input
- 1 0 0 0 1 0 0 0 1 (vmatrix)
- Output
- \begin{vmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{vmatrix}
- Walkthrough
- Each line becomes a row, and the chosen environment supplies the bars.
Limitations
- Needs \usepackage{amsmath}.
- No automatic alignment of unequal-length rows.
Questions
What is the difference between pmatrix and bmatrix?
Round brackets versus square brackets.
Which environment shows a determinant?
vmatrix, which draws vertical bars.
Can I use commas?
Yes, both commas and spaces separate cells.
Features
- Six matrix environments
- Space or comma input
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Citation Basics (MLA, APA & Chicago)
TutorialSmith
Citation styles for academic formatting tools.
Watch on YouTubeLearn JSON - Full Crash Course
freeCodeCamp.org
Structured citation data often serializes as JSON/CSL.
Watch on YouTube
- DOI Foundation
DOI.org
Persistent identifiers used in academic citation tools.
- APA reference examples
APA Style
Official APA examples for citation generators.