Formatting Issues

How to Use Multiple Font Sizes in SharePoint Column JSON

Natalie TaylorNatalie Taylor Oct 16, 2026 869 views

Question details

The user wants to apply different font sizes to separate parts of text within a single SharePoint column value.

How to Use Multiple Font Sizes in SharePoint Column JSON
Product
SharePoint
Device & OS
not provided
Scenario
Customizing SharePoint list views using column-formatting JSON to display complex data, such as a large prefix number and smaller suffix text.
Observed behavior
By default, SharePoint JSON column formatting applies a single font size to the entire value, making it difficult to style specific text spans differently within the same field.
Before you start

Ensure you have the necessary list management permissions to edit column settings and a basic understanding of JSON syntax before applying advanced formatting.

Solution 1Recommended

Use Child Elements in JSON to Split Text Styles

While a single element cannot have multiple font sizes, you can bypass this limitation by using parent and child elements in your JSON schema.

SharePoint column formatting does not support inline HTML or rich text formatting directly within a single string via JSON. However, you can use the 'children' property to split your data into multiple 'span' elements, applying different 'fontSize' styles to each part.

1
Access Column Settings

Navigate to your SharePoint list, click the header of the column you want to format, select 'Column settings', and then click 'Format this column'.

2
Switch to Advanced Mode

At the bottom of the formatting pane, click on 'Advanced mode' to reveal the JSON editor.

3
Construct Nested JSON Elements

Create a parent 'div' with a 'children' array. Inside the array, define multiple 'span' elements (using 'elmType'). Assign specific text content (e.g., using substring expressions) and unique 'style' properties, such as 'fontSize: 18pt' for the first child and 'fontSize: 14pt' for the second.

4
Save and Preview

Click 'Save' to apply the formatting. Review your list to ensure the text spans reflect the different font sizes.

Use Child Elements in JSON to Split Text Styles
Data Splitting Requirement: If the data comes from a single text string, you must use SharePoint JSON operators like substring or indexOf to isolate the specific parts of the string before applying styles.
Free Microsoft Office alternative

Format Data Effortlessly with WPS Office

Struggling with complex JSON code just to format your data? WPS Spreadsheet offers a visual, intuitive interface where you can apply multiple font sizes within a single cell instantly—no coding required.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your PC or mobile device.
  2. 2. Import Your Data: Export your SharePoint list to an Excel file and open it directly in WPS Spreadsheet with perfect compatibility.
  3. 3. Apply Rich Formatting: Double-click any cell, highlight the specific text you want to change, and use the ribbon to set a unique font size.
Fully compatible with Microsoft Excel formats (.xlsx, .xls)Apply multiple font sizes and styles in a single cell effortlesslyNo JSON schema or programming knowledge requiredLightweight, lightning-fast, and completely free
microsoft office alternative - wps office

Frequently Asked Questions

Can I format just part of the text in a SharePoint column?

Yes, but you cannot do it by styling a single string. You must construct a JSON object using child elements (like spans) to separate the text and apply distinct CSS styles to each piece.

Does SharePoint JSON column formatting support inline HTML?

No, SharePoint uses an Abstract Syntax Tree (AST) defined by JSON rather than raw HTML. You must define elements like divs and spans using the 'elmType' property.

Why isn't my JSON column formatting saving or updating?

This usually happens due to invalid JSON syntax. Ensure all brackets are closed, commas are placed correctly, and you are only using properties supported by the SharePoint column-formatting schema.