Objective-C Formatter

Indent Objective-C source files and align their brackets.

Objective-C Formatter

.h · .m · .mm

Paste text or open a file to see the result.

What it does

Indents Objective-C files and aligns the square brackets of message calls. Old iOS and macOS code often mixes styles, which makes long calls hard to read. You get the same code with a clear layout.

About the .h format

.H file extension
File Type
C/C++/Objective-C Header File
MIME
text/x-c

A header file (.h) is a file that contains the interface of a computer program. It is usually included in the implementation of the program and helps programmers to make use of this software.

Also works with

Objective-C Formatter questions

How do I use the Objective-C 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 .h 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 .h page lists programs and converters for it.