View and edit Excel .xlsx files in IntelliJ IDEA, PyCharm and DataSpell, and let Claude Code, Cursor or another AI coding agent read them

To view and edit an Excel .xlsx file inside IntelliJ IDEA, PyCharm, DataSpell or another JetBrains IDE, install XLSX Viewer & Editor for Excel and double-click the file: it opens as a table where you edit cells, copy and paste ranges to and from Excel or Google Sheets, fill a series, insert and delete rows, switch sheets, undo and save. To let Claude Code, Cursor or another AI coding agent read the workbook, turn on the IDE's MCP server and connect the agent: it reads any cell range as CSV, with no conversion script. The workbook your script just wrote, the test data in your repository and the report a colleague sent all open right next to your code.

Try it free for 7 days on JetBrains Marketplace — every feature is included in the trial.

XLSX Viewer & Editor for Excel — a plugin for IntelliJ IDEA, PyCharm, DataSpell, WebStorm, GoLand, PhpStorm, Rider, Android Studio and other JetBrains IDEs (2025.2 and later). Sold on JetBrains Marketplace with a 7-day free trial that includes every feature.

> Read the "Orders" sheet of data/orders.xlsx and check the totals.

xlsx_read_range  file: data/orders.xlsx  sheet: Orders  range: A1:D4
Sheet "Orders" (sheets in this workbook: "Orders", "Customers"), range A1:D4 (4 rows x 4 columns). CSV follows (RFC 4180 quoting):
Order,Customer,Qty,Total
1001,"Smith, Anna",3,59.97
1002,Kato,1,19.99
1003,Lee,2,39.98

Edit Excel files without leaving the IDE

Let Claude Code, Cursor and other AI agents read Excel files

With this plugin, Claude Code, Cursor or any AI agent connected to the IDE's MCP server reads the cells of an Excel workbook directly, so it can check a generated report, read test data or compare two sheets in the same conversation.

Setup

  1. Install XLSX Viewer & Editor for Excel from Settings | Plugins | Marketplace, restart the IDE if it asks, then start the 7-day free trial in the dialog the IDE shows.
  2. Double-click any .xlsx file in your project. It opens as a table.
  3. For AI agents: open Settings | Tools | MCP Server, enable the MCP server and connect your agent there (Claude Code, Cursor and other MCP clients). xlsx_read_range then appears in the agent's tool list.
  4. Ask the agent, for example: "Read the first sheet of reports/summary.xlsx and tell me which rows have an empty Total."

Maintained and supported

This is a paid product that we keep working on: bug fixes and updates for new IDE releases. An annual subscription includes a perpetual fallback license: after twelve consecutive paid months, you keep a working version even if you stop subscribing. Questions sent to contact@gramshift.com get an answer within two business days for serious problems and within five business days for everything else, and errors inside the plugin can be reported straight from the IDE's error dialog.

Frequently asked questions

How do I view and edit an .xlsx file inside IntelliJ IDEA or PyCharm?

Install XLSX Viewer & Editor for Excel from Settings | Plugins | Marketplace and double-click the .xlsx file in the Project view. It opens as a table in the IDE, where you edit cells, insert and delete rows, add a column, switch sheets, undo with Ctrl+Z and save with Ctrl+S. The same works in DataSpell, WebStorm, GoLand, PhpStorm, Rider, Android Studio and other JetBrains IDEs from version 2025.2.

How do I sort or filter an Excel file in IntelliJ IDEA or PyCharm?

Open the .xlsx file with XLSX Viewer & Editor for Excel and right-click a column letter: choose Sort A to Z or Sort Z to A, or Filter to pick the values to show. The toolbar has the same Sort & Filter menu, and Ctrl+Shift+L turns the filter on. Like Excel, it sorts the block of data around the selected cell, keeps the header row on top, and leaves a total row under a blank row in place. Filters are not saved in the file.

How do I convert an Excel .xlsx file to CSV or a Markdown table in IntelliJ IDEA or PyCharm?

Open the .xlsx file with XLSX Viewer & Editor for Excel and click Export on the toolbar. Export Sheet as CSV and Export Sheet as Markdown save the current sheet as a file, and Copy Sheet as Markdown puts the table on the clipboard, ready to paste into a README, an issue or an AI chat. The export holds the values as the table shows them: formula results, and dates and currency in their displayed form. CSV files are UTF-8, ready for scripts, pandas and Git diffs.

How do I get the sum, average or number of unique values of a column in an Excel .xlsx file in IntelliJ IDEA or PyCharm?

Open the .xlsx file with XLSX Viewer & Editor for Excel, right-click the column letter and choose Column Summary…, or open the Inspect menu on the toolbar. A small window shows the number of rows, how many cells are filled and empty, the count of each type (numbers, text, dates), the number of distinct values, Sum, Average, Min and Max, the earliest and latest date, the text length and the most frequent values with their counts. It names the exact range it summarized, leaves out rows hidden by the filter, and Copy puts the summary on the clipboard as text.

How do I show all the formulas in an Excel .xlsx file in IntelliJ IDEA or PyCharm?

Open the .xlsx file with XLSX Viewer & Editor for Excel and choose Show Formulas from the Inspect menu on the toolbar. Every formula cell then shows its formula, such as =SUM(B2:B9), in place of the result, as Show Formulas does in Excel, so you can read a whole sheet of formulas at once. The columns get wider to make room for the formulas. Find searches the formulas you see. Choose Show Formulas again to go back to the results. It changes only what the table shows; the workbook stays as it is.

Can I open an Excel add-in (.xlam) or a macro-enabled workbook (.xlsm) in a JetBrains IDE?

Yes. XLSX Viewer & Editor for Excel opens .xlsx, .xlsm, .xltx, .xltm and .xlam files in the editor. You can read and edit the cells and save, and the macros stay in the file when you save.

How do I convert an Excel .xlsx sheet to SQL INSERT statements in IntelliJ IDEA or PyCharm?

Open the .xlsx file with XLSX Viewer & Editor for Excel, click Export on the toolbar and choose Export Sheet as SQL INSERT. The current sheet is saved as a .sql file with one INSERT statement per row (Excel to SQL, no script needed), in standard SQL for PostgreSQL and SQLite. The sheet name becomes the table name and the first row becomes the column names, changed where needed so they work without quoting. Numbers stay numbers, dates are written as '2026-01-31', checkboxes as TRUE or FALSE, empty cells as NULL, and quotes inside text are escaped.

How do I convert an Excel .xlsx file to Parquet in IntelliJ IDEA or PyCharm?

Open the .xlsx file with XLSX Viewer & Editor for Excel, click Export on the toolbar and choose Export Sheet as Parquet. The current sheet is saved as a .parquet file (xlsx to Parquet, no script needed) that pandas, DuckDB and Polars can read. The first row becomes the column names and each column gets a type: a column of whole numbers is stored as integers, other numbers as doubles, checkboxes as booleans, dates as dates and dates with a time as timestamps. Empty cells become nulls.

How do I see the real value behind a rounded number or a date in an .xlsx cell?

Choose Cell Details from the Inspect menu on the toolbar. A panel under the table follows the selected cell and shows its type, the text the table shows, the stored value without rounding (for a date, the date and time with its serial number), the formula, the number format, the comment, the link and the merged range.

Can I copy and paste cells between the IDE and Excel or Google Sheets?

Yes. Select a range and press Ctrl+C: it pastes into Excel, Google Sheets or a text file. A range copied in Excel or Google Sheets pastes into the table with Ctrl+V, and numbers, currency amounts, percentages and dates arrive as values. Inside the same workbook, formulas move with the cells like in Excel, and Ctrl+Z undoes the whole paste in one step.

Can I open an Excel file in PyCharm without Excel installed?

Yes. With XLSX Viewer & Editor for Excel the .xlsx file opens and saves inside PyCharm itself, so Excel does not need to be installed on the machine. Formula cells show the result saved in the file, and the editor recalculates formulas after you change a cell.

How can Claude Code or Cursor read an Excel file in my project?

Enable the MCP server in Settings | Tools | MCP Server of your JetBrains IDE and connect the agent there. XLSX Viewer & Editor for Excel adds the tool xlsx_read_range, which takes a workbook path, a sheet name and a range such as A1:D20 and returns the cells as CSV, with a first line that names the sheet, lists every sheet and gives the exact range returned. The agent reads the workbook directly, with no conversion script.

Does the agent see the values or the formulas?

By default it gets the values with their number and date formats applied, and formula cells as their saved results. Ask for formulas and the same cells come back as formulas such as =SUM(A1:A3). If the workbook is open in the editor, the agent reads what the editor shows, including unsaved edits, and the result says so.

How do I check the .xlsx file my script just wrote, for example with pandas to_excel?

Double-click the .xlsx file in the Project view and it opens as a table next to your code. Keep it open and run the script again: when the file is rewritten and the table has no unsaved edits, the table reloads by itself and shows the new output.

Will saving keep my formatting?

Yes. Cell values, cell styles, formulas and merged cells are kept when you save. If the workbook also contains charts, pivot tables or embedded objects, see the Limits section on this page before saving.

Does the plugin send my spreadsheets anywhere?

No. The plugin makes no network connections. The xlsx_read_range tool reads only files inside the open project and returns the cells only to the AI agent you connected.

Install XLSX Viewer & Editor for Excel and try it free for 7 days

Compatible IDEs

Works in IntelliJ IDEA, PyCharm, DataSpell, WebStorm, GoLand, PhpStorm, Rider, CLion, RubyMine, RustRover and other IntelliJ-based IDEs from version 2025.2, and in Android Studio from Otter 2025.2.1.

Limits

Only .xlsx workbooks are opened. Old .xls files (also when renamed to .xlsx), damaged files and password-protected workbooks are not opened; the editor and the tool say why. Workbooks larger than 8 MB are not opened by default, and the message shows how to raise that limit. Loading also stops when a part of the workbook grows beyond 100 MB unpacked.

Formula cells show the result saved in the file. A workbook last saved in Excel holds those results. A workbook whose formulas were written by a script and never opened and saved in a spreadsheet application may hold no saved results, and those cells then show 0 or nothing; ask the tool for formulas to see what the cells contain. The editor recalculates formulas after you change a cell; functions it cannot calculate are recalculated by Excel when the file is opened there.

Some charts, pivot tables and embedded objects may not be kept when you save, so keep a copy of workbooks that contain them. Rows can be inserted or deleted on sheets with up to 2,000 rows, in workbooks with up to 200,000 cells. Rows cannot be inserted or deleted on a sheet that contains an Excel table, data validation rules, a chart, color scales, data bars or icon sets whose thresholds are cells, or rules and sparklines saved in the newer Excel 2010 form, or whose cells a pivot table, or a chart, rule or sparkline on another sheet, uses; every cell there can still be edited. Columns cannot be deleted. One copy, paste or fill changes up to 100,000 cells. A range copied from another workbook is pasted as values. Cut cells move within the same sheet; to put them on another sheet, copy them instead. A paste, fill or move that cannot be done the way Excel does it (for example into merged cells, into an array formula, or moving cells that a chart, pivot table, named range or rule points to) is refused with a message, and nothing is changed. Dates typed in forms other than the ones above are refused instead of being stored as text.

The agent tool needs an IDE that includes the built-in MCP server, and it reads only files inside the open project.

Privacy

The plugin makes no network connections and does not send your workbooks anywhere. The agent tool reads only files inside the open project and returns them only to the AI agent you connected. If an error occurs inside the plugin, the IDE may offer to send an error report to JetBrains Marketplace (or sends it automatically if you turned on automatic error reporting in the IDE); for the failures the plugin detects itself, the error text is removed first, so cell contents and file names are not included. See the Privacy Notice.

Excel is a trademark of Microsoft Corporation. This plugin is an independent product of GRAMSHIFT and is not affiliated with or endorsed by Microsoft.

Get XLSX Viewer & Editor for Excel (7-day free trial) · All GRAMSHIFT plugins · Support: contact@gramshift.com · Issue tracker