Nginx Config Formatter, Syntax Validator & JSON / YAML Converter

Built for nginx.conf & reverse-proxy configs · Losslessly preserves # comments, ${var} variables & regexes, pinpoints missing semicolons and braces

Raw Input & Diagnostics.nginx
0 lines · UTF-8
Paste or type configuration on the left to see live formatted output, converted syntax, or path tree.

Nginx Configuration Syntax & Troubleshooting Guide

Does formatting Nginx configs alter ${var} variables, regexes, or # comments?

No. Our Nginx formatter runs a token-preserving lexical pass that keeps all # comments, ${variable} interpolations, ~* regex patterns, quote styles, and numeric literals verbatim while normalizing indentation and spacing.

Can missing semicolons, unclosed braces, or full-width punctuation be auto-fixed?

Yes. The syntax engine pinpoints unterminated strings, unmatched "{" / "}" braces, and missing ";" terminators, and generates an instant fault-tolerant preview on the right for missing semicolons, unclosed blocks, and full-width punctuation.