All ToolsPower Automate Expression Formatter

Power Automate Expression Formatter

Paste a Power Automate expression to prettify it with proper indentation and validate it. Detects double quotes, wrong operators (=, &&), argument count errors, and misspelled function names.

Load Sample

Expression

✓ Valid

Formatted Output

if(
  equals(triggerBody()?['Status'], 'Approved'),
  concat(
    'Hello ',
    triggerBody()?['FirstName'],
    '! Your request #',
    string(triggerBody()?['RequestID']),
    ' has been approved.'
  ),
  concat(
    'Sorry, ',
    triggerBody()?['FirstName'],
    '. Request #',
    string(triggerBody()?['RequestID']),
    ' was rejected.'
  )
)

What this does

If the 'Status' field from the trigger equals 'Approved', then combines 'Hello ', the 'FirstName' field from the trigger, '! Your request #', the 'RequestID' field from the trigger as text, ' has been approved.'; otherwise combines 'Sorry, ', the 'FirstName' field from the trigger, '. Request #', the 'RequestID' field from the trigger as text, ' was rejected.'.

Tips

  • You can paste expressions with the @{...} wrapper — it is stripped automatically.
  • Use single quotes 'like this' for strings, not double quotes.
  • Use equals(a, b) instead of a = b, and and() instead of &&.