ChatGPT’s Code Interpreter (officially called Advanced Data Analysis) lets ChatGPT write and run Python in a sandbox — useful for analyzing spreadsheets, generating charts, and manipulating files. Here’s how to turn it on.
Step-by-Step: Enabling Code Interpreter
- Open ChatGPT and make sure you’re on a paid plan (Plus, Team, or Enterprise) — Code Interpreter requires GPT-4-class models, which free accounts don’t have full access to.
- Start a new chat and select a GPT-4-class model from the model picker at the top of the screen.
- You generally don’t need to manually toggle anything anymore — current ChatGPT versions auto-invoke Python execution when you ask it to analyze a file, make a chart, or run code. Just upload a file or ask a data question directly.
- If you’re on an older interface that still shows a Beta Features or Tools menu, check there for a “Code Interpreter” or “Advanced Data Analysis” toggle and enable it.
- Confirm it’s active by uploading a CSV and asking ChatGPT to summarize it — if it runs Python and returns a table or chart, it’s working.
What You Can Do With It
- Upload a spreadsheet and ask for statistics, cleaning, or visualizations
- Generate and download charts as image files
- Convert between file formats (e.g. CSV to Excel)
- Run one-off Python calculations without leaving the chat
Common Errors
“Code Interpreter isn’t available” — usually means you’re on the free tier or an older model. Switch to a GPT-4-class model on a paid plan.
Uploads fail or time out — very large files (multi-hundred-MB) can hit sandbox limits; try splitting the file or sampling a subset of rows.
Charts don’t render — this is usually a temporary rendering glitch; asking ChatGPT to regenerate the chart typically fixes it.
Alternatives If It’s Unavailable on Your Plan
If you’re not ready to upgrade, tools like Google Sheets formulas, or free notebook environments (Google Colab, Jupyter) can cover similar ground for spreadsheet analysis, just without the conversational interface.
FAQ
Is Code Interpreter free?
No — it requires a paid ChatGPT plan with access to GPT-4-class models.
Does it work on mobile?
Yes, file upload and Python execution work in the ChatGPT mobile apps on supported plans.









