Nginx Config Formatter

Indent nginx configuration blocks and directives.

Nginx Config Formatter

.conf

Paste text or open a file to see the result.

What it does

Indents nginx configuration so server, location and other blocks line up by depth. It helps you spot a missing brace or a directive in the wrong block before you reload the server. You get the same config, laid out clearly.

About the .conf format

.CONF file extension
File Type
Configuration information file
MIME
text/plain

The CONF file extension is a configuration information file that is used in various operating systems. This file can be created by users to store system settings for applications, control panel, and hardware.

Nginx Config Formatter questions

How do I use the Nginx Config Formatter?

Paste the text into the Input box or open a file, set the options, then copy or download the result.

Does renaming a file to .conf change its format?

No. The extension only tells programs what to expect, and the content of the file stays the same. To change the format, convert the file. The .conf page lists programs and converters for it.