The C# Excel Library
Go beyond basic spreadsheet editing. Get full control over workbooks, formulas, and charts for .NET 10 without Office Interop.
- Create and edit excel files, formulas, charts, & images
- Style cells, borders, fonts, and add hyperlinks
- Compatible with XLSX, XLS, CSV, TSV, XML, & DataTables
- Free 30-day trial, full features, no credit card
Read Excel Files without Interop
See All Code Examplesusing IronXL;
using System;
using System.Linq;
// Supported for XLSX, XLS, XLSM, XLTX, CSV and TSV
WorkBook workBook = WorkBook.Load("sample.xlsx");
// Select worksheet at index 0
WorkSheet workSheet = workBook.WorkSheets[0];
// Get any existing worksheet
WorkSheet firstSheet = workBook.DefaultWorkSheet;
// Select a cell and return the converted value
int cellValue = workSheet["A2"].IntValue;
// Read from ranges of cells elegantly.
foreach (var cell in workSheet["A2:A10"])
{
Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text);
}
// Calculate aggregate values such as Min, Max and Sum
decimal sum = workSheet["A2:A10"].Sum();
// Linq compatible
decimal max = workSheet["A2:A10"].Max(c => c.DecimalValue);
Imports IronXL
Imports System
Imports System.Linq
' Supported for XLSX, XLS, XLSM, XLTX, CSV and TSV
Dim workBook As WorkBook = WorkBook.Load("sample.xlsx")
' Select worksheet at index 0
Dim workSheet As WorkSheet = workBook.WorkSheets(0)
' Get any existing worksheet
Dim firstSheet As WorkSheet = workBook.DefaultWorkSheet
' Select a cell and return the converted value
Dim cellValue As Integer = workSheet("A2").IntValue
' Read from ranges of cells elegantly.
For Each cell In workSheet("A2:A10")
Console.WriteLine("Cell {0} has value '{1}'", cell.AddressString, cell.Text)
Next
' Calculate aggregate values such as Min, Max and Sum
Dim sum As Decimal = workSheet("A2:A10").Sum()
' Linq compatible
Dim max As Decimal = workSheet("A2:A10").Max(Function(c) c.DecimalValue)Cross Platform Support
Designed for C#, F#, & VB.NET running on .NET 10, 9, 8, 7, 6, 5, Core, Standard, or Framework
.NET Versions:
- C#, VB.NET, F# Languages
- .NET Core (10, 9, 8, 7, 6, 5, and 3.1+)
- .NET Standard (2.0+)
- .NET Framework (4.6.2+)
OS & Processors:
- Windows (x64, x86)
- Mac (x64, ARM)
- Linux (x64)
.NET Project Types:
- Web (Blazor & WebForms)
- Desktop (WPF & MAUI)
- Console (App & Library)
App Environments:
- Windows (10+, Server 2016+)
- Linux (Ubuntu, Debian, CentOS, etc.)
- Mac (macOS 10+)
- Docker (Windows, Linux, Azure)
- Azure (VPS, WebApp, Function)
- AWS (EC2, Lambda)
IDEs:
- Microsoft Visual Studio
- Jetbrains ReSharper & Rider
Binary Certification
- DigiCert Signed Binaries
A C# Excel Library that prioritizes accuracy, ease of use, and speed.
IronXL is the leading C# Excel library for generating and editing Excel documents in .NET. Its user friendly API allows developers to add Excel functionality to .NET projects in minutes.
Get your free 30-day Trial Key instantly.
The Excel API you need, without the Office Interop hassle.
Create
Design Your Spreadsheets
Customize Your Spreadsheets with Ease
Save and Export
Export Worksheet Formats
Edit Workbooks
Visually Represent Your Data
Edit The Layout
Working With Cells
- Set Cell Data Format
- Select and Manipulate Ranges
- Sort Cell Ranges
- Trim Cell Ranges
- Clear Cell Content
- Copy Cells
- Add Hyperlinks to Your Cells
- Merge and Unmerge Your Cells
Styling Cells
Working With Data
Secure Your Workbooks
Why IronXL
Read, write, and edit Excel in C#. No Office Interop. Runs on Windows, Linux, macOS & cloud.
Broad format support
- Read & write XLS, XLSX, XLSM, XLTX, CSV, TSV.
- Export to JSON, HTML, and binary formats in one call.
- Convert between formats without Office Interop or Excel installed.
Up & running in 5 mins
- → 5-minute quick starts.
- Simple API:
WorkBook.Load(),WorkBook.Create(),worksheet["A1"].Value. - Smart defaults: auto-recalculated formulas, intuitive
WorkSheet["A1:B10"]range syntax.
Enterprise performance
- .NET 10, Core, Standard, or Framework
- C#, VB.NET, F# supported. DigiCert signed binaries.
- Deploys anywhere: Windows, Linux, macOS, Docker, Azure, AWS, on-premise, air-gapped.
Accurate data handling, any source
- Native data types: text, numbers, dates, currencies, formulas, percentages.
- Formulas recalculate on every edit. Full math, sort, filter, aggregate (LINQ-compatible).
- Convert directly to/from
System.Data.DataSetandDataTablefor database workflows.
Developer-first support & licensing
- Perpetual license: buy once, use forever. Optional updates and renewals.
- 24/5 engineer support (24/7 in Premium). Real humans, median chat response <1 min.
- 30-day money-back guarantee. Not the right fit? Full refund, no questions.
For builders
- Features you'll actually use:
- read/write XLSX, XLS, CSV
- formula recalculation
- cell ranges (A1:B10)
- conditional formatting
- charts & images
- password encryption
- sort/filter/aggregate
- DataSet/DataTable conversion
- freeze panes, autosize
- JSON & HTML export
- Works everywhere: Windows, Linux, macOS, Docker, Azure, AWS, cloud.
For buyers
- Trusted by 2M+ engineers. 2,237,574 NuGet installs (verified on the features page).
- No Microsoft Office or Excel Interop required.
- Redistribution / SaaS / OEM options available.
- Procurement-friendly: perpetual license, optional renewals, invoice available, multiple payment options (incl. local: Amazon Pay, Alipay, Apple Pay, iDEAL, SEPA, ACH).
- 30-day money-back guarantee.
Trusted by millions of engineers worldwide
Every time developers ask, it's a YES! from IronEXCEL
Can IronXL read, create, and edit Excel files without Microsoft Office or Excel Interop installed?YES!
Does it natively support XLS, XLSX, CSV, TSV, and JSON formats in a single API?YES!
Is there built-in conversion between Worksheets and DataTable/DataSet objects for database integration?YES!
Can formulas be added, modified, and recalculated dynamically?YES!
Does it support granular styling including fonts, borders, alignment, backgrounds, and number formats?YES!
Is it fully cross-platform on .NET Core, Standard, and Framework across Windows, Linux, macOS, Docker, and Azure?YES!
Can it open, edit, and save password-protected spreadsheets?YES!
Does it support range operations like sorting, trimming, grouping, and merging?YES!
Can sheet data be exported directly to XML and JSON?YES!
Can metadata, freeze panes, and print areas be configured programmatically?YES!
Does it support fast bulk editing using standard Excel cell notation (e.g., "A1:B10")?YES!
Can I test IronXL in my live project for free now?YES! Click here to start your 30-day free trial
Ready to Get Started?
Nuget Downloads 2,237,574|Version:2026.9just released



