Swift
Formatter
Beautify and format Swift code with proper indentation, consistent spacing, and organized structure. Transform unformatted Swift source into clean, readable, and maintainable code following Swift coding conventions for easier debugging, iOS/macOS development, and collaboration.
Swift Formatter Upload File
UTF-8 UTF-8 with BOM UTF-16 Little Endian UTF-16 Big Endian UTF-32 Little Endian UTF-32 Big Endian ASCII (US) ISO-8859-1 (Latin-1) ISO-8859-2 (Central Europe) ISO-8859-3 (South Europe) ISO-8859-4 (North Europe) ISO-8859-5 (Cyrillic) ISO-8859-6 (Arabic) ISO-8859-7 (Greek) ISO-8859-8 (Hebrew) ISO-8859-9 (Turkish) ISO-8859-10 (Nordic) ISO-8859-11 (Thai) ISO-8859-13 (Baltic) ISO-8859-14 (Celtic) ISO-8859-15 (Latin-9) ISO-8859-16 (Romanian) Windows-1250 (Central Europe) Windows-1251 (Cyrillic) Windows-1252 (Western Europe) Windows-1253 (Greek) Windows-1254 (Turkish) Windows-1255 (Hebrew) Windows-1256 (Arabic) Windows-1257 (Baltic) Windows-1258 (Vietnamese) IBM437 (US DOS) IBM850 (Western Europe) IBM852 (Central Europe) IBM855 (Cyrillic) IBM857 (Turkish) IBM860 (Portuguese) IBM861 (Icelandic) IBM862 (Hebrew) IBM863 (Canadian French) IBM864 (Arabic) IBM865 (Nordic) IBM866 (Russian) IBM869 (Greek) Shift_JIS (Japanese) EUC-JP ISO-2022-JP GB2312 (Simplified Chinese) GBK GB18030 Big5 (Traditional Chinese) EUC-KR (Korean) UTF-7 Mac Roman KOI8-R (Russian) KOI8-U (Ukrainian) Beautify
Minify
Copy Output
Download
Clear
Theme