Free Pascal 3.2 (FPC)

Online Pascal Compiler

Structured, procedural programming with Free Pascal Compiler (FPC). Write code with auto-formatting, test with standard input (stdin), and inspect terminal output in real-time.

✓ Strong static typing and structured blocks✓ Records, procedures, and functions✓ Turbo Pascal and Delphi compatibility✓ ReadLn standard input
main.pas
Free Pascal 3.2 (FPC)
13px
Standard Input (stdin)
Passed to scanf, input(), cin, etc.
UTF-8Pascal (FPC)2 SpacesWrap: Off
Ctrl+Enter to Run
Ln 1, Col 124 lines520 chars
Output & ConsoleIdle

Ready to Compile & Run

Click the blue ▶ Run button in the header bar or press Ctrl + Enter to compile and execute your Online Pascal Compiler.

How to Run Pascal (FPC) Code Online

Compile structured Pascal algorithms using Free Pascal Compiler.

  1. Write program Header; begin ... end., press "▶ Run".

Common Errors & Troubleshooting

Encountering compilation or runtime diagnostics? Check these common scenarios:

Fatal: Syntax error, ";" expectedEnsure every statement is terminated by a semicolon.

Related Legacy & Specialized Languages

View all 35+ compilers →
Fortran (gfortran).f90

High-performance scientific, numerical and legacy computing with GNU Fortran

Assembly (x86).asm

Low-level x86/x64 NASM assembly playground with register and memory inspection

Frequently Asked Questions (Pascal (FPC))

Yes, FPC provides full backward compatibility mode.