For an undeclared colour with a clear fallback already in the script, Apply suggested fix adds that definition. You can inspect the change and undo it.
PASTE · CLEAN · FIX · CREATE POWERPOINT
Claude JavaScript to PowerPoint — Cleaner & Error Fixer
Turn a PptxGenJS presentation script from Claude or another AI assistant into a PowerPoint file. Clean the code, see errors by line, apply supported fixes and download an editable PPTX.
START WITH BETTER CODE
Copy this prompt into Claude
Use Claude, ChatGPT or another assistant to write the presentation script. No AI account is connected to this page.TESTED & REVIEWED
Know what this tool does—and where to double-check
- Reviewed by
- HTML Online Viewer project
- Last reviewed
- Processing
- Ordinary processing happens in this browser tab; the tool does not intentionally upload your source.
- Important limitation
- Supports self-contained PptxGenJS scripts and specific, inspectable repairs. It cannot infer unknown content or install Node.js packages, and static checks do not prove runtime behaviour or slide layout. Keep the original and review the exported presentation.
WHY USE IT
A focused tool for reliable PowerPoint work
Syntax mistakes and missing variables show a line, column, code excerpt and explanation. Jump directly to the relevant part of the editor.
Import a JS file, download the original or cleaned JavaScript, and generate the presentation on your device without submitting source to our server.
HOW IT WORKS
Three quick steps
- 01Ask for presentation JavaScript
Copy the ready-made prompt into Claude or your preferred assistant. Ask for a complete PptxGenJS script, then paste or import the response here.
- 02Clean and check the code
Select Clean & check. Review the changes and errors. Use Apply suggested fix where available, or copy a repair prompt when the missing value needs the author’s input.
- 03Create your PowerPoint
Choose a file name and select Create PowerPoint. The generator runs the checked script and downloads a real PPTX. Open the file to review its slide layout.
HOW CLAUDE CODE BECOMES SLIDES
A beginner’s guide to generating PowerPoint with Claude
Claude can write JavaScript that describes slides using PptxGenJS. This page supplies that presentation library, adapts supported Node.js imports and save commands, checks the code and creates the file in your browser. You do not need a Node.js installation.Specify your topic, who will read the slides and how many slides you need. Ask for editable text, readable fonts, speaker notes and a self-contained PptxGenJS script. Review AI-generated factual content yourself.
A script typically creates one presentation with new PptxGenJS() or an imported alias, then adds slides. The cleaner replaces the supported library import and final writeFile with a browser export. It lists these changes and retains an original download.
Colour fallbacks can provide a clear suggested fix. Missing data, custom helpers or local images need more information; use the repair prompt. After downloading, open the PPTX in your presentation app and check fonts, spacing and slide content.
REAL EXAMPLES
See the input and expected result
These small examples show the format the tool accepts and what it produces before you use your own file or source.An AI script with a missing colour
slide.addText("My title", { color: PURPLE || "6C3483" });const PURPLE = "6C3483";The value is already written in the script. JavaScript still throws when an undeclared name appears before ||, so the declaration is needed.
A Node.js import and output path
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.addSlide();
pres.writeFile({ fileName: "/mnt/user-data/outputs/talk.pptx" });const pptxgen = PptxGenJS;
const pres = new pptxgen();
pres.addSlide();
return pres;The original output folder is ignored. The download uses talk.pptx, and the old save callbacks are not executed.
COMMON QUESTIONS
Claude JS to PPTX FAQ
How do I turn a Claude JavaScript file into a PowerPoint?
Paste or import a complete PptxGenJS presentation script, select Clean & check, resolve the reported items and select Create PowerPoint. Use the prompt maker if you need Claude to write a suitable script first.
Can I paste the same original script without manually defining PURPLE?
Yes. If the original code uses an undeclared colour such as PURPLE || "6C3483", the check offers Apply suggested fix. It adds the colour already given in the fallback. The fix is explicit and reversible.
Will every JavaScript file become a presentation?
No. A presentation script must create slides with PptxGenJS. Ordinary JavaScript, a slide outline or a JSON list of titles needs to be turned into a deck script first. Our prompt helps an AI assistant write that script.
What does Clean & check change?
It removes supported surrounding Markdown fences, adapts PptxGenJS imports, replaces one final writeFile and its callbacks, and formats indentation. It then checks syntax and missing variables. These operations do not execute the presentation script.
Can it automatically fix every error?
No. A known colour fallback supports a specific fix, but an unknown missing variable or helper has no reliable inferred value. Other problems show an explanation and a repair prompt. Runtime checks can reveal additional problems when you create the file.
Do I need Node.js, a paid Claude plan or an API key here?
This converter runs in your browser and needs no account or API key. You can bring a compatible script from any source. Access to Claude itself depends on your own Claude account and plan; this page is not connected to it.
Can I import a file and save the cleaned JavaScript?
Yes. Import .js, .mjs, .cjs or .txt, then download the cleaned JS or original source. Presentation scripts must fit within the 150 KiB processing limit.
Are text, shapes, charts and tables editable?
PptxGenJS creates native PowerPoint objects for supported text, shapes, charts and tables. Embedded image pixels remain images. Review the exported deck in PowerPoint or compatible software.
What if the script uses fs, sharp, canvas or local helper files?
Those dependencies need a Node.js environment and cannot be supplied here. Ask the author to make the deck self-contained with PptxGenJS, embedded image data and editable shapes, or run that script in the original environment.
Does the site upload my presentation code?
The cleaning, checks and presentation generation happen in the current browser. The tool does not intentionally upload your source. Only run JavaScript you trust; source screening and worker isolation are not a complete security sandbox.
Why does an output path beginning with /mnt/user-data not work on my computer?
That is a folder in the environment where the AI script was designed to run. The cleaner keeps only the output file name and downloads the file through your browser instead of writing to that folder.
Can I undo a suggested fix?
Yes. Undo restores the previous code change. Download original JS also keeps the source you imported or first cleaned.