Draw.io Merge Cells: Steps, Limits, and Fixes

How-to basics · Updated November 4, 2026

Draw.io Merge Cells: Steps, Limits, and Fixes

Yes. In draw.io, also called diagrams.net, you can merge adjacent cells in an editable table: select the cells, right-click the selection, and choose Merge Cells. The command applies to table cells, not to ordinary shapes, spreadsheet ranges, or text boxes that only look like a table.

What merging cells means in draw.io

A diagrams.net table is a diagram object made of rows and columns. Merging combines neighboring cells into one larger cell, usually to create a heading across several columns or a label spanning several rows. For example, a two-column table might have a single top cell labelled Quarterly results, with separate cells beneath it for Revenue and Expenses.

This is a layout feature, not a spreadsheet operation. A merged cell does not calculate values, and draw.io tables do not behave like Excel or Google Sheets ranges. The table is part of a visual diagram: it can sit alongside flowchart shapes, connectors, icons, and other objects on the canvas. The merge command changes the table’s structure so the cells appear as one region.

The distinction matters when you are deciding how to build a diagram. If you need formulas, sorting, filtering, or data analysis, use a spreadsheet and link or import a visual representation as appropriate. If you need a compact, styled table inside a process map, architecture diagram, or presentation, a draw.io table can be a better fit.

How to merge cells

Start with an editable table in the diagram. Select the neighboring cells that should become one cell, right-click the selection, and choose Merge Cells. If the command is available, the selection is recognized as table cells; after merging, the chosen region is treated as a single cell. The wording or location of table commands can vary slightly between app versions, but the context menu is the usual place to look.

  1. Open the diagram and click the table you want to edit.
  2. Select the cells to combine. Select the cells themselves rather than highlighting words in a cell.
  3. Right-click the selected cells and choose Merge Cells.
  4. Check the result, then adjust the text alignment, row height, column width, or borders if needed.

Choose a rectangular group of adjacent cells. For example, two side-by-side cells in the same row form a simple horizontal merge; two cells directly above and below each other form a vertical merge. Select the complete block you intend to combine rather than unrelated cells in different parts of the table. If the selection includes gaps or does not form a valid rectangle, the merge command may be unavailable.

Selecting the right cells

Cell selection can be confusing because a table contains both text and structural cells. A click can place the text cursor inside a cell, while a drag can select words or cover part of the table. If you see a blinking text cursor or highlighted characters, you are editing text, not selecting a range of cells. Exit text editing and try again, aiming to select whole cells.

When a range is selected correctly, use the context menu to check whether Merge Cells is enabled. If it is greyed out or absent, first confirm that the object is a native table and that more than one valid, neighboring cell is selected. Some versions and editing modes make cell selection easier than others; zooming in can help when borders are close together. Avoid dragging the table’s outer resize handles, which changes the table’s dimensions instead of selecting its cells.

Before changing a large table, consider duplicating the diagram page or saving a copy. That gives you a straightforward way to compare the original layout if the selection or resulting merge is not what you intended.

What happens to text and formatting

Merging changes the cell structure, so do not assume that separate text in every selected cell will remain as separate, neatly arranged content afterward. If each cell contains a label you need, copy those labels somewhere safe first. Then merge the cells and add or reorganize the text in the resulting cell. This is especially important when creating a heading: put the final heading in the merged region and check that it is readable at the diagram’s normal viewing size.

Formatting may also need attention. A larger cell can make a short label look off-center or leave too much empty space. Adjust text alignment and the cell’s dimensions after merging, and inspect the borders where the merged region meets the rest of the table. A useful test is to zoom out to the scale at which someone will read the diagram; text that looks fine while editing may be too small in an exported image or printed page.

For a clean result, keep the table’s visual hierarchy simple. Use merged cells for meaningful group headings or section labels, not to disguise an irregular layout. Consistent spacing, clear headings, and restrained use of color usually make a diagram easier to scan than merging many small cells.

Limits and objects that cannot be merged

The command is for cells in an editable table. It will not combine two independent rectangles, text boxes, or other shapes into a table cell. Nor will it make a screenshot or flattened image editable: if a table was pasted into the diagram as an image, draw.io sees the image as one object rather than a collection of cells. Similarly, a picture of a spreadsheet does not retain the spreadsheet’s cell structure.

Merging is generally most useful for a contiguous rectangular area. It is not a way to join distant cells while leaving empty gaps between them, or to make one cell span arbitrary, disconnected parts of a table. If the table’s structure does not allow the layout you need, consider rebuilding that section with a simpler table or using separate diagram shapes.

Also remember that a visually merged region is still part of a diagram, not a data model. It is not a reliable way to encode relationships for automated calculations. If information has to remain machine-readable as rows and fields, keep the structured data in a spreadsheet or another data tool and use draw.io for the explanatory visual.

Common problems and practical fixes

  • Merge Cells is unavailable. Check that the object is an editable table, not a group of shapes or an image. Select at least two adjacent cells in a rectangular block and open the context menu again.
  • The text is selected instead of the cells. Leave text-editing mode and select the cell area. Zooming in can make it easier to target the cell boundaries.
  • The wrong region merges. Undo immediately, then select the intended cells more carefully. Review the whole table after the change, especially if several rows have different widths.
  • Text seems to disappear or becomes hard to read. Undo if needed, preserve the text before merging, and re-enter or reposition the content in the combined cell. Check alignment and dimensions afterward.
  • The table looks uneven after merging. Adjust row heights, column widths, text alignment, and borders. A merge can change how much space the label needs, so inspect neighboring cells too.

Undo is useful for correcting a mistaken merge while you are editing, but it is not a substitute for keeping a copy of important work. If the table has many carefully formatted cells, duplicate the page or save a version before experimenting. Once the merge is correct, check the diagram in the format in which it will be shared, since exporting or printing can reveal spacing issues that are easy to miss on the canvas.

When to merge—and when not to

A merged cell can make a clear visual heading. Imagine a two-column project table with a single heading, Milestones, across the top, followed by Task and Owner as the column labels. Combining the two top cells gives the heading a natural width and signals that it applies to both columns. A vertical merge can serve a similar purpose when one category label applies to several rows.

However, merged layouts can make tables harder to scan if used excessively. Readers may have trouble following which labels belong to which values, particularly when several rows and columns have different merged regions. If the table is primarily a reference list, repeated labels in separate cells may be clearer and easier to maintain than a complicated pattern of merged cells.

Ask what the merge communicates. If it groups related information, it may help. If it only removes a blank-looking boundary or makes an awkward table fit, consider changing the table’s dimensions or simplifying the content instead. The best choice is the one that remains understandable when the diagram is resized, exported, or viewed by someone who did not create it.

Alternatives if the merge command does not fit

If the object is not an editable table, there are several practical options. You can insert a native table and recreate the relevant content, or use individual rectangles and text boxes when the layout needs unusual spans. Separate shapes offer more freedom, but they take more work to align and keep consistent when the diagram changes.

For a small visual adjustment, you might imitate a merged area by removing or covering an internal border, but that is only a visual workaround. It does not create a true combined cell and can become fragile when the table is resized, edited, or exported. Use it only when appearance is the priority and you understand that the underlying cells remain separate.

If the table needs spreadsheet features, maintain it in a spreadsheet and use draw.io to explain the process or relationships around it. That avoids trying to turn a diagram editor into a data-analysis tool. If the table must be part of the diagram itself, use a native table where possible and keep its structure straightforward.

Frequently Asked Questions

Can you merge cells in draw.io?
Yes. Select adjacent cells in an editable diagrams.net table, right-click, and choose Merge Cells. The option does not apply to ordinary shapes or a table pasted as a flat image.

Why is Merge Cells greyed out?
The selection may contain only one cell, may not be a rectangular block of neighboring cells, or may be text rather than cells. It can also happen when the selected object is an image or a group of separate shapes instead of a native table.

Can I merge cells vertically as well as horizontally?
Yes, a valid selection can span neighboring cells in a row or a column. Select the whole rectangular region you want to combine and check the result, since the layout and available selection behavior can depend on the table structure.

Does merging cells combine their text?
Do not rely on it to preserve every cell’s separate text in the arrangement you want. Copy important labels first, merge the cells, and then verify or re-enter the content in the resulting region.

Can I merge cells in a draw.io image or screenshot?
No. An image is a single object, not an editable table. Recreate the table as a native table or build the needed layout from diagram shapes if you need to change its cells.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.