.F

F File

Fortran Source File
Ask a question
QUICK ANSWER

A .f file contains Fortran source code in the fixed-form layout used by FORTRAN 77 and earlier. Open it in any text editor to read or edit it. To compile and run it, use gfortran or Intel ifx - both are free.

Developer: IBM (original FORTRAN, 1957); language now governed by ISO/IEC 1539 standard Category: Developer Files Open standard MIME: text/x-fortran
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Aug 31, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the F file format?

A .f file contains Fortran source code in the fixed-form column layout inherited from 80-column IBM punch cards. Fortran (Formula Translation) was developed at IBM in 1957, making it the oldest high-level programming language still in active production use. The .f extension conventionally signals fixed-form source to compilers - a critical distinction, since column positions carry semantic meaning.

Fixed-form layout rules:

  • Column 1: blank = executable line; C, *, or ! = comment
  • Columns 1-5: statement label
  • Column 6: continuation character (any non-blank, non-zero character continues the previous line)
  • Columns 7-72: statement body
  • Columns 73-80: optional sequence number (ignored by modern compilers)

The .f extension implies FORTRAN 77 fixed-form syntax. Fortran 90 and later introduced free-form source with no column restrictions, which should use .f90, .f95, .f03, or .f08. Compilers such as gfortran and Intel ifx infer the source form from the extension unless overridden with flags like -ffree-form.

Fortran dominates scientific computing: computational fluid dynamics, climate modeling, quantum chemistry, and finite-element analysis all maintain millions of lines of legacy .f code on HPC clusters. The ISO/IEC 1539-1 standard governs the language; the current edition is Fortran 2023.

Security & safety

RISK: LOW

Plain text source code. Opening in a text editor or IDE is completely safe. Risk arises only if compiling and running untrusted Fortran code.

Format details

in a nutshell
FULL NAMEFortran Source Fileaka FORTRAN source code, Fortran fixed-form source
DEVELOPERIBM (original FORTRAN, 1957); language now governed by ISO/IEC 1539 standardsince 1957 (FORTRAN I by IBM); .f extension standardized with FORTRAN 77 (1978)
MIME TYPEtext/x-fortran
TYPEplain-text source code file
STANDARDOpen · royalty-free
This extension is also used by…
  • Generic source file fragment - Some build systems use .f as an abbreviation for arbitrary input files; context-dependent, rare.

Programs that open F files

Windows5 apps
PSPad Free Open .f file via File → Open; syntax highlighting for Fortran available.
Notepad Open-source Open .f file; select Language → F (Fortran) for syntax highlighting.
Intel Fortran Compiler (ifx/ifort) Free ifort source.f -o output.exe (command line); integrates with Visual Studio as a plugin.
Microsoft Visual Studio (with Intel Fortran plugin) Freemium Install Intel oneAPI HPC Toolkit; VS gains Fortran project type and IntelliSense for .f files.
VS Code + Modern Fortran extension Open-source Install 'Modern Fortran' extension; provides syntax highlighting, diagnostics, and fortls language server.
macOS3 apps
TextMate Open-source Open .f file; TextMate recognizes Fortran syntax. Use as text editor only, not compiler.
gfortran (GCC) Open-source Install via Homebrew (brew install gcc); gfortran source.f -o output
Apple Xcode (text editing only) Free Can open .f as a text file; no Fortran compiler or project template included - use gfortran separately.
Linux2 apps
gfortran (GCC) Open-source sudo apt install gfortran; gfortran source.f -o output (fixed-form inferred from .f extension)
Intel Fortran Compiler (ifx) Free Install via Intel oneAPI HPC Toolkit; ifx source.f -o output

Technical details

deep spec
Source formFixed-form - column-sensitive layout inherited from 80-column punch cards
Column semanticsCol 1 = comment flag (C/*/!); cols 1-5 = label; col 6 = continuation; cols 7-72 = code; cols 73-80 = sequence
Implied standardFORTRAN 77 (ISO/ANSI X3.9-1978) - inferred from .f extension by most compilers
MIME typetext/x-fortran
EncodingASCII 7-bit (historical); modern compilers accept UTF-8 in comments and string literals
Free-form counterparts.f90 / .f95 / .f03 / .f08 for Fortran 90+ free-form source (no column restrictions)
Compiler flag override-ffree-form (gfortran) or -free (Intel ifx/ifort) forces free-form parsing of .f files
Governing standardISO/IEC 1539-1 (current edition: Fortran 2023)
Primary domainScientific/HPC computing - CFD, climate models, quantum chemistry, finite-element analysis
PlatformLinux, Windows, macOS, Unix, HPC clusters (Cray, IBM Power, etc.)
Typical size1 KB - 2 MB per source unit
Alternative fixed-form extensions.for, .ftn, .f77 (less common; same fixed-form column syntax)
Compilation outputObject file (.o) linked into executable or library; no standard bytecode intermediate
Released1957 (FORTRAN I by IBM); .f extension standardized with FORTRAN 77 (1978)
Latest versionFortran 2023 (ISO/IEC 1539-1:2023); compilers use .f90/.f95/.f03 for newer dialects
Open standardYes · royalty-free
Specificationfortranwiki.org

F conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with F files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about F files.

Frequently asked questions

What is a .f file?
A Fortran source code file in fixed-form layout (FORTRAN 77 style). It is plain text containing scientific/engineering computation code.
How do I compile a .f file?
Use gfortran (free, cross-platform): gfortran source.f -o output. On Windows, Intel ifx integrates with Visual Studio.
What is the difference between .f and .f90?
.f implies fixed-form layout (columns matter, FORTRAN 77 style). .f90 is free-form (Fortran 90+, no column rules). Most compilers switch parser based on the extension.
Can I open a .f file without installing a Fortran compiler?
Yes - it is plain text. Open it with any text editor (Notepad, VS Code, Notepad++) to read or edit it.
Is Absoft Pro Fortran still available?
No. Absoft ceased operations on September 30, 2022. Use gfortran (free) or Intel ifx (free for non-commercial use) instead.

References

1GFortran documentationgcc.gnu.org
2Fortran Wiki - File extensionsfortranwiki.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BCBitComet Incomplete Download File
3.PARTPartial Download File
4.CRDOWNLOADChrome Partial Download File
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.MDMarkdown Document
8.AVIFAV1 Image File Format (AVIF)
9.NOMEDIAAndroid No-Media Marker File
10.RPMSGRestricted Permission Message

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z