Five Number tools
Five Number tools › View Formatting Builder

SharePoint View Formatting Builder and Preview

Paste the JSON from "Format current view" and preview whole rows live against your own sample data. It handles rowFormatter, additionalRowClass and group headers, understands both expression styles (the abstract operator form and the Excel-style =if(...) form), resolves field references like [$Title] per row, and flags unknown element types, bad attributes and unknown operators.

Your JSON and sample rows are never sent anywhere. Validation and preview run in your browser.
Start from an example (loads the view JSON and sample rows)

Field references in the formatter like [$Status] read from each row here. Numbers and ISO date strings keep their type.

Live preview approx. of the SharePoint rows
The rendered rows appear here.

A close approximation using Segoe UI and the built-in sp-field-severity colors. Fluent UI icons are stand-in glyphs, remote images are not fetched, and real list theming may differ. Row selection and column headers are not drawn.

View formatting notes

  • rowFormatter replaces the whole row with your own layout. additionalRowClass keeps the normal columns and just adds a CSS class (so it is ignored when a rowFormatter is present).
  • Field references use the internal name, like [$Title] or [$Status]. There is no @currentField at the row level.
  • $schema should be the v2 row-formatting.schema.json. The allowed elmType values are div, span, a, img, svg, path, button, p, filepreview.
  • attributes keys are limited to href, rel, src, class, target, title, role, iconName, d, aria, data-interception, viewBox, preserveAspectRatio, draggable.
  • groupProps can carry a headerFormatter and footerFormatter for grouped views. This tool validates them and previews the header once.
  • Links allow only http, https, mailto and tel. This preview never fetches remote images (only inline data: images render, remote ones show a placeholder), so nothing you paste reaches an outside server.

Disclaimer

These tools are provided free and as-is, with no warranty of any kind. The preview is an approximation of the SharePoint renderer and can differ from the real list. Always verify in SharePoint before you rely on it.

fivenumber tools is an independent project and is not affiliated with, sponsored by, or endorsed by Microsoft. Microsoft, Microsoft 365, SharePoint, Entra, OneDrive and Copilot are trademarks of the Microsoft group of companies.

Send feedback

Found this useful, or hit a snag? Tell me what worked and what would make it better. Your note comes straight to me.

Thanks, your feedback was sent.

I read every note. If you left your email, I may follow up.