Raw formula
Paste or type your formula
Use Ctrl+V to paste (Command+V on Mac)
Paste or type your formula
Use Ctrl+V to paste (Command+V on Mac)
Live preview
Brackets, quotes, separators, operators and the casing of common functions. Names, data types and delegation are checked only in Power Apps Studio.
Enter a formula to run local syntax checks.
Functions, variables and collections found in the formula. Select a function to open it in the Power Apps Formula Explorer.
Enter a formula to see its building blocks.
The Power Apps Formula Beautifier is a free Power Fx formatter. It turns long, single-line Power Apps formulas into clean, indented code, and it understands Power Fx: double-quoted text, single-quoted names such as 'Due Date', records and tables, string interpolation, comments, chained behaviour formulas, named formulas and both comma and semicolon separators. Use it to read a formula someone else wrote, track down a missing bracket, or share tidy, highlighted code in documentation and blog posts with Copy in colour or Save PNG.
It formats Power Fx formulas from Power Apps into clean, indented code. Nested functions such as If, Switch, Filter and Patch, records, tables, long conditions and chained behaviour formulas are laid out so the logic is easy to follow.
Copy the formula from the Power Apps formula bar and paste it into the Raw formula box. The formatted version appears straight away. Choose a format and width, then select Copy code to paste it back into Power Apps.
Smart keeps short parts such as Text(Now(), "dd mmm") on one line and only breaks what goes past the width. Expanded puts every argument of a function on its own line. One line puts the whole formula on a single line.
Yes. The beautifier only changes spaces and line breaks, so the formula works the same way in the formula bar. In the One line format, // comments become /* */ comments so they don't hide the rest of the formula.
Select Copy in colour to paste highlighted code into Word, Outlook, OneNote or Teams, or Save PNG to download an image with a title such as Gallery1.Items. Add ALT text to the image when you post it.
Yes. It detects whether a formula uses commas or semicolons between arguments. Under More options you can convert a formula from one style to the other, including decimal numbers and the chaining operator (; or ;;).
No. Formatting, checks and image export all run in your browser. Your formula is not uploaded or stored.