Formatters & Code
Power BI Theme JSON Validator
Validate Power BI theme JSON files against official Microsoft schemas locally. Pinpoint invalid properties, check contrast, and test version compatibility.
Theme JSON & target version
Drag and drop your Power BI theme .json file here
or click to browse from your device · up to 10 MB
Validation Findings & Diagnostics
Color Palette & WCAG Accessibility Contrast
Evaluates data colours against canvas backgrounds. WCAG AA requires 4.5:1 for body text and 3:1 for graphical UI elements.
Results
What the result means
Power BI custom themes control report colors, fonts, and visual formatting through JSON. This validator checks syntax and the selected bundled Microsoft schema, then reports property paths, missing names, invalid colors, and structural mismatches. Possible export-structure findings are supported by schema errors. Safe Auto-Fix applies limited repairs and revalidates the result. Palette contrast and cross-version schema checks are separate audits; import and inspect the reviewed theme in your target Desktop release. Download the paired invalid and corrected examples in the guide to reproduce common failures and compare each repair.
Related tools
Guides
Questions
Why does Power BI Desktop fail to import a theme that was just exported from another report?
Exported themes can fail for several reasons, including version differences, incorrect types, and malformed fills. Inspect the reported path. Safe Auto-Fix repairs a string-valued solid fill, but other issues need manual review. See the walkthrough for tested invalid and corrected downloads.
What causes the "The theme file couldn't be imported" error in Power BI?
Common causes include missing the required root `name` property, invalid hexadecimal color values, unrecognized visual properties under `visualStyles`, or properties introduced in newer Power BI Desktop versions being imported into an older installation.
How does schema validation differ from ordinary JSON syntax checkers?
General JSON validators only verify that syntax is syntactically well-formed (valid braces, brackets, and quotes). They cannot determine whether property names, hierarchy, color patterns, and visual definitions match the specifications expected by Power BI Desktop's rendering engine.
Does my theme data leave the browser during validation?
No. All parsing, schema checks, color contrast audits, and safe transformations occur locally in your browser using JavaScript and pre-bundled Microsoft schemas. No data is transmitted to external servers.