Attribute placement
Inline attributes are preserved.
Fix: No action needed.
header • up to 320x100 / 728x90
Pretty-print C# source with syntax highlighting — handy for code reviews and snippets
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
C# is a modern, statically typed language from Microsoft used to build .NET applications, games with Unity, and cross-platform services.
C# Code Viewer is a quick-look tool for .NET classes, structs, records, and methods. It re-indents your code with balanced braces and renders it with syntax highlighting.
Everything runs in the browser, so sensitive .NET source stays on your machine.
public class Hi{public void Run(){Console.WriteLine("Hi");}}public class Hi {
public void Run() {
Console.WriteLine("Hi");
}
}Inline attributes are preserved.
Fix: No action needed.
@"..." is preserved as-is.
Fix: No change — strings aren't reformatted.
No — this is a pretty-printer only.
No — everything runs client-side.
Yes — they're re-indented like any other block.
Beautifier has deeper formatting; the Viewer is fast re-indent.
All — input is treated as text.
Pair with C# Beautifier, escape/unescape, and regex tester. You can also browse the full Viewers category for more options.
Format and beautify C# code online with proper indentation and .NET coding style. Paste C# and get clean, readable output following best practices.
Escape or unescape C# string literals including \x, \u, and \U Unicode escape sequences
Test and debug regular expressions
Pretty-print Java source code with syntax highlighting — paste any class, interface, or snippet
Pretty-print JavaScript source with indentation and syntax highlighting for quick inspection
Read and pretty-print PHP source with brace-balanced indentation and syntax highlighting
View and render BBCode
View CSV data in a table format
View OPML (Outline Processor Markup Language) files
View and parse RSS feeds
Inspect workbook sheets and export spreadsheet data in the browser
Open and inspect PDF documents directly in the browser