After Effects can read spreadsheets. That one sentence has cost me more afternoons than I'd like to admit.
Yes, you can import a CSV into After Effects, link the numbers to properties and build charts that update when the data changes. Adobe has supported CSV, TSV and JSON as data footage for years. What the help page leaves out is how many small things have to line up before a single number lands where you want it.
So this is the field guide I wish I'd had: how CSV import in After Effects actually works, where it breaks, and how to stop it breaking. It's also part one of a series on building charts in After Effects. Every chart type has its own special flavour of pain, but they all start here, with a humble text file.
How CSV import in After Effects works
You import a CSV like any other footage: File › Import, or double-click an empty spot in the Project panel. It shows up as a footage item you can't actually look at. From there, you have two ways to get at the numbers.
Route 1: read it with an expression
Any property can read a cell straight from the footage item:
footage("sales.csv").dataValue([1, 3])
The two numbers are column and row, both counted from zero. You don't need the CSV in your comp for this, and when the file changes on disk, the value follows.
Route 2: drop the CSV into the comp
Drag the CSV into a comp and you get a strange layer: no Transform group, just a Data group. Inside it there's a Number of Rows property and an Outline group with one sub-group per column, named after your header. It's handy for pick-whipping, and it's the only easy way to find out how many rows you have.
That last part is where the trouble starts.
Why CSV in After Effects is harder than it looks
Your CSV probably isn't comma-separated
If you work in Germany, or anywhere else that writes decimals with a comma, Excel's "CSV" export uses semicolons. The comma is already busy being a decimal point. After Effects expects commas, so a semicolon file arrives as one giant column: Product;Revenue 2025;Revenue 2026 crammed into a single cell.
The standard forum reply to this is, roughly, "a semicolon is not a comma." Technically correct. The most annoying kind of correct.
Numbers make it worse. Put 1.234,5 into a comma-separated file and it gets split in half. You can fix it in Windows under the region settings (set the list separator to a comma and the decimal symbol to a period) and re-export. Or you can find-and-replace in a text editor, but mind the order: turn decimal commas into periods first, then semicolons into commas. Do it the other way round and every number becomes two columns. Ask me how I know.
parseFloat lies to you quietly
Depending on the cell, dataValue() can hand you a string. So you wrap it in parseFloat(), like every forum answer tells you to. Fine, until your data has thousands separators:
parseFloat("1,234.5")
That returns 1. No error, no warning. Your bar is just tiny and you spend twenty minutes checking the scale math. Strip the separators before parsing:
parseFloat(String(v).replace(/,/g, ""))
…and that only works for US-style numbers. For 1.234,5 you need a different replace. You can see where this is going.
Counting rows is weirdly hard
footage() can read any cell, but it can't tell you how many rows exist. There's been a feature request for exactly that on Adobe's forums since 2023. Until it lands, you either drop the CSV into the comp and read Number of Rows, or you split the file's sourceText by line breaks and count.
And here's the fun bit. Number of Rows is an interactive, keyframable property. It keeps the value it had at import. Add rows to your CSV, reload, and it still says 16. An Adobe engineer confirmed this in a forum thread about AE 26.5 in October 2026 and suggested counting the properties in the Outline group instead:
thisComp.layer("sales.csv")("Data")("Outline")("Revenue 2025").numProperties
Works great. Nobody would ever guess it.
Reading past the end throws errors
Ask for a row that doesn't exist and After Effects throws an expression error. Delete one row from your CSV and the expression on your last bar lights up orange. Empty cells aren't zero either: they come back empty, and the math that follows does whatever JavaScript feels like that day.
File names are load-bearing
footage("sales.csv") looks the file up by name. Use Replace Footage with sales_final_v3.csv and every expression pointing at the old name breaks at once. Data-driven, as long as the data never gets a new name.
Collect Files forgets your data
After Effects doesn't trace footage that's only referenced by expressions. If the CSV isn't a layer in a comp, Reduce Project and Collect Files (with anything other than All selected) can drop it. Adobe also recommends putting the data file on the timeline if you render through Media Encoder. So the CSV you didn't need in the comp… needs to be in the comp.
More rows means more layers, by hand
Your CSV can grow. Your comp can't. Twelve rows means twelve bars, twelve labels, twelve value layers. When the client adds a thirteenth month, you duplicate layers, fix the indices and check that nothing shifted. Every expression trick in the world doesn't create layers for you.
A CSV checklist that prevents most of this
- One header row, one label column, numbers in the rest.
- Commas between columns, periods for decimals, no thousands separators.
- Export as CSV UTF-8 if your labels have umlauts or accents. I do it every time, just to be safe.
- No empty cells. Write
0. - Pick the final file name before you build anything.
- Keep the CSV as a layer in the comp so Collect Files and Media Encoder take it along.
Or let something else worry about the CSV
Full disclosure: I built aeChart, mostly because I got tired of fixing semicolons. It's a ScriptUI panel that turns a CSV into an animated chart made of plain After Effects layers. The CSV handling was the first thing I wrote, because everything else depends on it.
Here's what it does with your file:
- Comma, semicolon and tab files all work, including German Excel exports.
- Both number styles are recognised:
1.234,5and1,234.5. - Empty cells count as 0, and the panel tells you which ones were empty.
- A preview shows the first rows and what each column will be used for (labels, series, periods) before you build anything.
- It saves a copy of your data in an aeChart Data folder next to your project, so tidying up your downloads folder doesn't kill the chart.
- Update Data swaps in a new CSV. Same rows and columns: the chart updates on the spot. Different number of rows: aeChart offers to rebuild, and it keeps your CHART CTRL settings and any layers you added. The finished comp is shape layers, text layers, one controller null and expressions. No plug-in effects, no keyframes, no MOGRTs. So it opens and renders on a machine that doesn't have aeChart installed, which your render farm will appreciate.
Two things it needs: After Effects 2026 or 2027, and a saved project (that's where the data copy goes). You also need to switch on Allow Scripts to Write Files and Access Network in the Scripting & Expressions preferences. If it's off, the panel tells you.