In Excel for Microsoft 365 on Windows, select the cell or cells and press Alt, H, W—one key after another, not all at once—to turn Wrap Text on or off. The same setting is available on the Home tab in the Alignment group, using the Wrap Text button.
What the Wrap Text shortcut does
Wrap Text displays a cell’s contents on multiple lines within the existing column width. Instead of letting a long entry continue across empty cells or appear cut off, Excel breaks the display into lines inside the cell. The underlying value or text stays in one cell; wrapping changes how it appears, not what it contains.
For example, if a column is 18 characters wide and a cell contains a long product description, wrapping lets Excel show the description across several lines while keeping the column at that width. The row usually becomes taller to make room. This is useful for headings, addresses, notes, and descriptions when widening every column would make a worksheet difficult to read.
The shortcut applies to the current selection. Select a single cell to change just that cell, or select a range, entire rows, or entire columns to change several cells together. It is a formatting command, so it does not insert line-break characters into the text.
How to use Alt, H, W on Windows
Excel’s ribbon Key Tips make the sequence easy to follow. Press and release Alt to display Key Tips, press H for the Home tab, then press W for Wrap Text. The order matters: treat the keys as a sequence rather than holding Alt, H, and W down together.
- Select the cells whose text should wrap.
- Press and release Alt.
- Press H, then W.
- Check the result and adjust the column width or row height if needed.
Pressing the sequence again reverses the setting for the selection. If the ribbon is collapsed or the window is narrow, the button may be shown in a compact layout, but the Key Tip sequence still provides a keyboard route in the Windows desktop app with the standard English ribbon. Key Tips can differ with other display languages or customized ribbons; when in doubt, press Alt and follow the letters displayed on screen.
Use the ribbon or Format Cells instead
To use the mouse, select the cells and choose Home > Alignment > Wrap Text. The button is a toggle: clicking it applies wrapping or removes it. This is often the clearest option when you are already inspecting the ribbon or working in a localized version where the Key Tip letters differ.
You can also open the Format Cells dialog. Select the cells, press Ctrl+1 on Windows, open the Alignment tab, select or clear Wrap text, and choose OK. This route is useful when you want to review other alignment settings at the same time. It is also helpful if you need to set a consistent state across a selection rather than simply toggle a button.
On Excel for Mac, use Home > Wrap Text or open Format Cells > Alignment and choose Wrap text. The Windows Alt, H, W Key Tip sequence is not the equivalent Mac shortcut. Excel for the web also provides the Wrap Text button on the Home tab; keyboard access can depend on the browser and web-app shortcuts, so the ribbon control is the dependable option there.
How wrapping interacts with column width and row height
Column width determines where Excel breaks a wrapped line. A narrow column creates more lines; a wider column creates fewer. Wrapping does not automatically choose a column width that makes the text attractive, so a small width adjustment can improve readability without switching off the setting.
Excel normally increases a row’s height to show wrapped lines. If you later widen the column, fewer lines may be needed and the row can become shorter. If you shrink the column, more lines may be needed. To fit the row to its contents, select it and choose Home > Format > AutoFit Row Height, or double-click the lower boundary of the row number. AutoFit can also be used for selected rows.
Manually setting a fixed row height can prevent all wrapped lines from showing. If text looks clipped at the bottom, select the affected rows and use AutoFit Row Height, or increase the row height by dragging its boundary. Merged cells are a special case: Excel may not automatically adjust a merged row to fit wrapped text. For predictable sizing, avoid merging cells for long text; consider using Center Across Selection for a heading or placing the text in a normal, wider cell instead.
Wrap Text versus a manual line break
Wrap Text lets Excel choose line breaks based on the available column width. A manual line break puts a break at a particular point in the cell’s text, regardless of where Excel would otherwise wrap it. Use wrapping when the content should adapt if a column is resized; use a manual break when the line division is intentional, such as separating a street address from a city and postal code.
To insert a manual line break while editing a cell on Windows, place the insertion point where the next line should begin and press Alt+Enter. On Mac, the corresponding shortcut is Control+Option+Return. A line break is part of the cell’s contents, so it remains at that position even if the column width changes. The cell may still need Wrap Text enabled for all lines to display well.
These techniques can be combined. For instance, a cell containing a two-line address can have a manual break between the street and city, while Wrap Text handles any additional line breaks required by a narrow column. If you later copy the value into another application, the manual break travels with the text; automatic wrapping is mainly a display effect controlled by the cell’s format and width.
Common problems and practical fixes
- The text still appears cut off: Increase the row height or use AutoFit Row Height. Check whether a fixed height or merged cells are stopping Excel from displaying every line.
- Nothing seems to change: Confirm that the intended cells were selected, then check Home > Wrap Text or Format Cells > Alignment. A nearby empty cell can make unwrapped text look as though it fits, so the difference may be less obvious until you narrow the column.
- The row becomes much taller than expected: A narrow column, long text, or a manual line break can create many display lines. Widen the column, remove unnecessary breaks, or shorten the entry if the worksheet design allows it.
- The shortcut does something different: Press Alt and read the Key Tips shown in your ribbon. The letters can vary with Excel’s language, ribbon customization, or environment. Use the visible Wrap Text button if W is not the displayed Key Tip.
- Numbers or dates look different: Wrapping is not a number format and does not change the stored value. If a number is displayed as hashes, the column may be too narrow for its current number format; widening the column or changing the number format is usually more relevant than wrapping.
Remember that formatting can be copied along with cell contents. If a cell you paste into unexpectedly wraps text, inspect its alignment setting; the format may have come from the source cell. You can change Wrap Text for the destination selection without changing the text itself.
When to use wrapping in a worksheet
Wrap Text is especially useful when a worksheet has a few long-text columns among many numeric columns. For example, a task tracker might keep the date and owner columns narrow while wrapping a wider Notes column. This preserves space for concise fields and makes longer descriptions visible without requiring every row to share the same fixed layout.
For column headings, wrapping can keep labels readable while limiting column width. A heading such as “Estimated delivery date” can display on two lines in a compact column. After applying the setting, check the row height and alignment so the heading remains easy to scan. Centering or top-aligning text is a separate alignment choice; Wrap Text does not change horizontal or vertical alignment by itself.
Wrapping is not always the best way to handle lengthy paragraphs. A very tall row can make sorting, scanning, and printing less convenient. Depending on the goal, alternatives include widening the column, shortening the displayed label, placing detailed notes in a separate sheet, or using a comment or note. Choose based on whether the full content needs to remain visible in the grid at all times.
Frequently Asked Questions
What is the keyboard shortcut for Wrap Text in Excel?
In Excel for Microsoft 365 on Windows, press Alt, then H, then W. Press the keys in sequence, and select the cells first. The shortcut toggles wrapping for the selection.
Is Alt+H+W a simultaneous shortcut?
No. It is commonly written with plus signs, but in Excel’s ribbon Key Tips it means press and release Alt, then press H, then W. You do not hold all three keys at once.
What is the Wrap Text shortcut on a Mac?
The Windows Alt, H, W sequence is not the Mac equivalent. In Excel for Mac, select the cells and click Home > Wrap Text, or set Wrap text in the Alignment tab of Format Cells.
Why does Excel not show all the wrapped text?
The row may have a fixed height, or merged cells may be preventing automatic row sizing. Use AutoFit Row Height or increase the row height manually. If the cell is merged, unmerging it may make sizing more predictable.
Does Wrap Text insert a line break in the cell?
No. It changes how Excel displays the contents within the column width. For a fixed line break inside the text, edit the cell and use Alt+Enter on Windows or Control+Option+Return on Mac.
Can I wrap text in several cells at once?
Yes. Select the range, rows, or columns first, then use Alt, H, W or click Home > Wrap Text. Excel applies the setting to the selected cells; their row heights may need adjustment to show every line.
Related
- Excel Transpose: Turn a List Into a Table
- Excel To-Do List Examples and Simple Templates
- Excel Text Number Format: How It Works and When to Use It
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Insert a Black Line in WordTo insert a black line in Word, type three hyphens on a blank line and press Enter; Word…
- Calculate the Number of Months in ExcelTo count complete months between two dates in Excel, enter the earlier date in A2 and the later…
- Excel Workbook Image: Insert, Copy, or Export PicturesAn Excel workbook is not itself an image: it is a file that can contain worksheets, data, charts,…
- Excel Named Range in a Drop-Down List: How to Set It UpYes. In Excel for Microsoft 365 on Windows, create a named range for the list items, then set…
- Excel: Merge Cell Data Into One CellTo combine values from several Excel cells into one cell without losing the originals, use TEXTJOIN. With first,…
- Excel: How to Hide Dashed Page Break Lines on a SheetTo hide dashed page break lines in Excel for Microsoft 365 on Windows, open File > Options >…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.