FreeSpire.XLS 12.7.0

.NET 6.0 .NET Core 2.0 .NET Framework 4.0
dotnet add package FreeSpire.XLS --version 12.7.0
NuGet\Install-Package FreeSpire.XLS -Version 12.7.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FreeSpire.XLS" Version="12.7.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FreeSpire.XLS --version 12.7.0
#r "nuget: FreeSpire.XLS, 12.7.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FreeSpire.XLS as a Cake Addin
#addin nuget:?package=FreeSpire.XLS&version=12.7.0

// Install FreeSpire.XLS as a Cake Tool
#tool nuget:?package=FreeSpire.XLS&version=12.7.0

Free .NET API for Processing Excel Documents

Product Page | Documentation | Examples | Forum | Customized Demo

Free Spire.XLS for .NET is a Community Edition of Spire.XLS for .NET, which is a totally free Excel API for commercial and personal use. As a standalone .NET library, it enables developers to create, manipulate and convert Excel files on any .NET(C#, VB.NET, ASP.NET, .NET Core) applications without depending on Microsoft Office.

Free Spire.XLS for .NET supports both the old Excel 97-2003 format (.xls) and the new Excel 2007, Excel 2010, Excel 2013, Excel 2016 and Excel 2019 (.xlsx, .xlsm).

Friendly Reminder: Free version is limited to 5 sheets per workbook and 200 rows per sheet. This limitation is enforced during reading or writing XLS files. From Free Spire.XLS v7.8, there is no any limitation when loading and saving .xlsx file format. When converting Excel files to other formats, such as PDF/XPS/Images, you can only get the first 3 pages of PDF/XPS/Images.

100% Standalone .NET API

Free Spire.XLS for .NET is a 100% standalone Excel .NET library without requiring Microsoft Excel or Microsoft Office to be installed on the system.

Freely Operate Excel Files

Powerful & High Quality Excel File Conversion


Create an Excel File in C#

using Spire.Xls;
using System.IO;
namespace CreateExcelFiles
    class Program

        static void Main(string[] args)
            //A: Dynamically create Excel file and save it to stream
            Workbook wbToStream = new Workbook();
            Worksheet sheet = wbToStream.Worksheets[0];
            sheet.Range["C10"].Text = "The sample demonstrates how to save an Excel workbook to stream.";
            FileStream file_stream = new FileStream("To_stream.xls", FileMode.Create);

            //B. Load Excel file from stream
            Workbook wbFromStream = new Workbook();
            FileStream fileStream = File.OpenRead("sample.xls");
            fileStream.Seek(0, SeekOrigin.Begin);
            wbFromStream.SaveToFile("From_stream.xls", ExcelVersion.Version97to2003);


Convert Excel to PDF in C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spire.Xls;

namespace ToPDF
    class Program
        static void Main(string[] args)
            Workbook workbook = new Workbook();
            workbook.LoadFromFile("Sample.xlsx", ExcelVersion.Version2010);
            workbook.SaveToFile("result.pdf", Spire.Xls.FileFormat.PDF);

Convert Excel to Image in C#

using Spire.Xls;
namespace Xls2Image

    class Program
        static void Main(string[] args)
            Workbook workbook = new Workbook();
            Worksheet sheet = workbook.Worksheets[0];

Product Page | Documentation | Examples | Forum | Customized Demo

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Framework net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
Xamarin.iOS xamarinios
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (13)

Showing the top 5 NuGet packages that depend on FreeSpire.XLS:

Package Downloads

Package Description


Package Description


This is simple C# console application which converts XLS and XLSX files to PDF, BMP, PNG, GIF, JPG, JPEG, TIFF.


based on Spire.XLS excel import and export


Paquete de creacion de libros de excel con validacion de celdas y libros con informacion precargada

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
12.7.0 95,378 7/19/2022
12.2.0 128,578 2/15/2022
12.1.0 9,950 1/28/2022
11.8.6 173,274 8/26/2021
10.10.0 199,156 10/13/2020
10.1.0 253,260 1/15/2020
9.10.11 109,054 10/24/2019

The most release version of Free Spire.XLS relased.