How to Limit Text Displayed in a Microsoft Lists or SharePoint View
Question details
The user needs a way to restrict the amount of long-text content displayed in a Microsoft Lists or SharePoint list view to improve overall readability.

- Product
- Microsoft Lists / SharePoint
- Device & OS
- not provided
- Scenario
- Managing long-text columns in list views where excessive text clutters the interface and disrupts the layout.
- Observed behavior
- Microsoft Lists displays the full text in long-text columns by default, and there is no built-in UI toggle to limit the character count displayed in the view.
Ensure you have the necessary edit permissions to modify list views and format columns in your SharePoint or Microsoft Lists environment.
Use JSON Column Formatting to Truncate Text
Since Microsoft Lists lacks a built-in UI setting to limit displayed text, you can apply custom JSON code to the column to restrict the visible characters.
JSON column formatting allows you to customize how data is displayed without altering the actual underlying list data. By using CSS properties like 'white-space' and 'text-overflow' within the JSON payload, you can force the text to truncate and display an ellipsis (...) for longer strings.
Open your Microsoft List or SharePoint list and locate the long-text column you want to restrict. Click on the column header.
From the dropdown menu, select 'Column settings', and then click on 'Format this column'.
At the bottom of the formatting pane on the right side of the screen, click on 'Advanced mode'.
Paste your custom JSON formatting code designed to truncate text (utilizing style attributes like 'overflow: hidden' and 'text-overflow: ellipsis').
Click 'Save' to apply the new formatting to your list view. The long text will now be visually truncated according to your JSON parameters.
Manage Your Data Effortlessly with WPS Spreadsheet
If you are tired of using complex code like JSON just to format your lists and tables, consider managing your data in WPS Spreadsheet. It offers a highly compatible, free, and user-friendly interface to track your tabular data without any coding required.
- 1. Download and Install: Download WPS Office for free and install it on your device.
- 2. Create a Data Tracker: Open WPS Spreadsheet and create a new blank workbook to act as your list tracker.
- 3. Format Without Code: Enter your data and manage long text easily by adjusting column widths or toggling 'Wrap Text' directly from the Home tab.

Frequently Asked Questions
Does truncating text with JSON delete my original list data?
No. Column formatting only changes how the data is visually presented in the list view. Your original long-text content remains completely intact and can be viewed fully when opening the individual list item details.
Why isn't there a simple character limit setting in Microsoft Lists?
Microsoft Lists deliberately handles advanced view customization through JSON to provide developers and power users with highly flexible and powerful styling options, rather than adding countless toggle buttons to the standard UI.
Can I apply JSON formatting to a multi-line text column?
Yes, JSON formatting can be applied to multi-line text columns. However, ensure that 'Enhanced rich text' is disabled for that specific column, as rich text HTML tags can interfere with standard JSON styling rules.
Where can I find pre-built JSON templates for SharePoint lists?
You can find numerous pre-built and tested JSON templates on the official Microsoft GitHub repository for SharePoint list formatting, or by asking the community in the Microsoft Q&A SharePoint section.




