Nginx Config Formatter
Format and beautify Nginx configuration files with proper indentation for server, location, upstream, and other blocks.
Frequently Asked Questions
What does the Nginx Config Formatter do?
It takes raw or minified Nginx configuration and applies proper indentation and formatting, making nested blocks like server, location, http, and upstream easy to read.
Does it validate my Nginx config?
This tool focuses on formatting and indentation. It does not validate directive names or check for semantic correctness—use `nginx -t` for that.
How does it handle nested blocks?
The formatter tracks brace depth and indents each nested block (http, server, location, upstream, if, map, etc.) by the chosen indent size.
Can I use tabs instead of spaces?
Yes — choose the Tab option in the indent size selector to use tab characters for indentation.