How to Insert a Matrix in Google Docs (Free Generator)

New to the tool? Learn how to use the matrix generator — including bracket styles, fractions and roots, LaTeX import, and how to insert your matrix into Google Docs, Sheets, or Slides.

Updates automatically as you type.

Layout

Up to 12×12.
Try \frac{a}{b}, \sqrt{x}, x_1, y^2 in any box.

Import
Color highlighting

Google Docs has no built-in way to insert a matrix. The native equation editor can place basic symbols, but it has no bracket controls, no fraction-in-a-cell support, and no clean way to build anything larger than a tiny 2×2 grid.

This free tool fills that gap: build a matrix up to 12×12 with any bracket style, drop in fractions, square roots, or subscripts, then download it as a sharp image and insert it into Google Docs, Sheets, Slides, or Word in a few clicks — no sign-up, no watermark, no cost.

How to Insert a Matrix in Google Docs (Quick Answer)

Build your matrix in the tool above, click Download PNG, then in Google Docs go to Insert → Image → Upload from computer and select the file. That’s the whole process — no equation editor workarounds needed.

Why Google Docs Doesn’t Have a Real Matrix Tool

Google Docs’ equation editor is built for simple inline math — fractions, exponents, Greek letters — not structured notation like matrices.

You can technically fake a tiny matrix with square-bracket symbols from the equation toolbar, but there’s no way to size it, add a determinant bar, highlight a row, or drop in a fraction inside a cell.

For anything beyond a 2×2 example, people usually end up building a table and manually styling the borders, which rarely looks right. A dedicated generator that outputs a clean image sidesteps all of that.

How to Create a Matrix: Step by Step

  1. Set the number of Rows and Columns (up to 12×12) and click Build Grid.
  2. Type a value into each cell — leave one blank and it defaults to 0.
  3. Pick a Bracket style — square, round, curly, and seven others are covered below.
  4. Turn on Augmented matrix if you need a dashed divider line for a system of equations.
  5. Adjust the Font size if the matrix needs to be bigger or smaller.
  6. Click Download PNG to save the finished matrix as an image.
  7. Insert that image wherever you need it — see the per-app steps further down.

The same steps work whether you’re building a simple 2×2 or 3×3 matrix for a homework problem or a full 12×12 matrix for a linear algebra assignment.

Choosing a Bracket Style

Every matrix needs brackets around it, and different fields use different styles. Here’s what each one means:

StyleLooks likeCommonly used for
Square[ 1 0 ]General-purpose matrices — the most common style
Round( 1 0 )Also very common, especially in textbooks
Curly{ 1 0 }Sets of equations or piecewise notation
Pipe| 1 0 |Determinants
Double pipe‖ 1 0 ‖Norms, a fancier determinant notation
None1 0Just the numbers, no brackets
Angle⟨ 1 0 ⟩Physics and advanced math notation
Floor⌊ 1 0 ⌋Floor function (round down)
Ceiling⌈ 1 0 ⌉Ceiling function (round up)
Double bracket⟦ 1 0 ⟧Specialized notation in advanced courses

Adding Fractions, Square Roots, and Subscripts

Instead of plain numbers, type a small bit of LaTeX-style syntax into any cell and it renders as real math notation:

Type thisYou get
\frac{1}{2}A stacked fraction (½)
\sqrt{2}A square root symbol (√2)
x_1x with a subscript 1
a_{ij}a with a multi-character subscript — use curly braces when the subscript is more than one character
y^2y with a superscript 2
x_1^2Subscript and superscript combined in one cell

Each cell holds one piece of math notation — a fraction, a square root, or a sub/superscript combo, not several mixed together.

Importing a Matrix from LaTeX or a Spreadsheet

Already have your matrix written out somewhere else? Skip the retyping:

  • From LaTeX: paste something like \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} into the Import panel and click Parse LaTeX. The grid fills in automatically and the bracket style switches to match (pmatrix → round, bmatrix → square, Bmatrix → curly, vmatrix → pipe, Vmatrix → double pipe).
  • From a spreadsheet: copy a range of cells straight out of Google Sheets or Excel, paste it into the Import panel, and click Parse Table. It handles both tab-separated and comma-separated data.

Highlighting Rows, Columns, and Diagonals

Click + Add highlight to paint a soft color behind part of your matrix — a row, a column, the main diagonal, the anti-diagonal, or a single cell. This is especially useful for illustrating patterns, like highlighting the diagonal of an identity matrix.

Inserting Your Matrix into Docs, Sheets, Slides, or Word

Once your matrix looks right in the preview, click Download PNG. That gives you a high-resolution image file you can drop into any of these:

  • Google Docs: Insert → Image → Upload from computer
  • Google Sheets: Insert → Image → Insert image over cells (or in a cell)
  • Google Slides: Insert → Image → Upload from computer, then resize as needed
  • Microsoft Word: Insert → Pictures → This Device
  • PowerPoint: Insert → Pictures, same as Slides
  • Anywhere else: most apps that accept an image will take the PNG directly

Building a 2×2, 3×3, or Larger Matrix

The process is identical no matter the size — set Rows and Columns to match what you need (2 and 2 for a 2×2, 3 and 3 for a 3×3, and so on, up to 12×12) and click Build Grid.

Smaller matrices like 2×2 and 3×3 are the most common for homework and textbook problems, and they render just as sharply as a full 12×12.

Frequently Asked Questions

Does Google Docs have a built-in matrix tool?

No. The equation editor supports basic math symbols but has no dedicated matrix builder, no bracket options, and no way to add fractions inside cells. That’s the gap this tool fills.

How do I insert a matrix into Google Docs?

Build it with this tool, click Download PNG, then in Google Docs use Insert → Image → Upload from computer to place it in your document.

Can I make a 2×2 or 3×3 matrix with this, or only large ones?

Yes — any size from 1×1 up to 12×12. Small matrices like 2×2 and 3×3 are the most common use case and work exactly the same way as larger ones.

Is this matrix generator really free?

Yes. Every feature — 12×12 matrices, all ten bracket styles, fractions and roots, LaTeX import, and color highlighting — is free, with no account and no watermark on the downloaded image.

Can I insert a matrix directly into Google Docs without downloading an image first?

This tool works by generating a PNG you insert manually — it takes a few seconds. If you want one-click insertion straight from inside Google Docs, Matrix Inserter for Docs is a Google Docs add-on that builds the matrix and drops it into your cursor position automatically.

Can I use this for Google Sheets or Slides too, not just Docs?

Yes. The PNG it produces can be inserted into Google Sheets, Google Slides, Word, or PowerPoint the same way — Insert → Image in each app.

Does the matrix image stay sharp if I resize it?

Yes — the PNG is rendered at a high resolution, so it stays crisp even if you enlarge it or print the document.

What does the augmented matrix option do?

It adds a dashed vertical line through the matrix after whichever column you choose — the standard way to write a system of linear equations as a single matrix.

Author: Shubham Calmblay

Shubham Calmblay, founder of appsthatdeliver.com, has a decade of experience with various Google products. He has authored 1,000+ guides for ATD, published on prestigious tech blogs. His work has garnered recognition from Protocol.com, Leadsbridge.com, MadMobile.com, and numerous other leading publications and corporations.