C# 12 / .NET 8

Online C# Compiler

Modern C# 12 and .NET 8 online compiler with LINQ and object-oriented syntax. Write code with auto-formatting, test with standard input (stdin), and inspect terminal output in real-time.

✓ Modern C# 12 top-level statements✓ LINQ query operations✓ Classes, records, and pattern matching✓ Console.ReadLine standard input
Program.cs
C# 12 / .NET 8
13px
Standard Input (stdin)
Passed to scanf, input(), cin, etc.
UTF-8C# (.NET)2 SpacesWrap: Off
Ctrl+Enter to Run
Ln 1, Col 124 lines740 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 C# Compiler.

How to Run C# (.NET) Code Online

Write, compile, and run C# programs with .NET class libraries and modern language constructs.

  1. Write your C# code inside Program class or with top-level statements.
  2. Click "▶ Run" or press Ctrl + Enter.

Common Errors & Troubleshooting

Encountering compilation or runtime diagnostics? Check these common scenarios:

The name X does not exist in the current contextAdd missing `using` directives (e.g. using System.Linq).

Related Popular Language Compilers

View all 35+ compilers →
Python 3.py

Write, run and test Python 3 code in your browser with interactive standard input

JavaScript (Node.js).js

Execute modern ES6+ JavaScript code in an isolated high-speed runtime

TypeScript.ts

Type-safe JavaScript playground with instant transpilation and type validation

HTML / CSS / JS.html

Multi-pane web editor with live preview, responsive device frames and instant rendering

Frequently Asked Questions (C# (.NET))

Yes, both method and query syntax LINQ extensions are fully supported.