How Do You Build a Small App in Gemini Canvas?
Click Add Files, then Canvas, and describe the app. Gemini writes the code and shows it running in a panel beside the chat. Use it for small tools you can test by clicking, such as calculators, quizzes and trackers. It isn't for changing an existing codebase.
Build a single-page [type of tool, e.g. job estimate calculator] for [who uses it]. It must let the user: - [action 1] - [action 2] Inputs: [fields, with units and sensible defaults]. Output: [what it shows, and how it's calculated, e.g. rooms x area x coats x price per square meter]. Edge cases: [empty fields, zero, very large numbers]. Look: [e.g. plain, large text, works on a phone]. No login, and no outside services. Start with sample data I can replace.
- 1Use it in the preview
- 2Show console for errors
- 3Select & ask on one part
Try it now
- 1Below the text box, click Add Files, then Canvas. Enter the prompt above and click Submit.
- 2Use the app in the panel. Try an empty field and a silly number.
- 3If something breaks, click Show console at the top right, and paste the message into the prompt box.
- 4To change one part, click Select & ask, select that part, describe the change, and press Enter. You'll know it worked when your test inputs give the numbers you worked out by hand.
Use it when
A one-page tool you want today: a job estimate calculator, a quiz built from study notes, a price slider for a proposal. It's also a fast way to test whether an idea is worth building properly.
Skip it when
Anything with real customer data, logins or payments. Google warns that anyone with an app's public link can view and edit data associated with the app. Also skip it if the work has to live in your repo, where Antigravity makes more sense.
Why it works
Canvas keeps the code and a working preview together, so you can judge by using the app and not by reading code. Google's help says you can edit through the prompt box or directly in Code view, and changes save automatically. Show console gives you errors and logs at the top right of the panel, so you can paste a real message back to Gemini. Google's overview page says Canvas is available to all Gemini users wherever the app is offered, and that Pro and Ultra get a 1 million token window for larger projects.
Example
Say you run a small painting company. Ask for a calculator with rooms, wall area, coats and price per square meter, with a printable total at the bottom. Before you trust it, work out one job by hand and enter the same numbers. Then ask Gemini to add a line for materials. If that breaks the total, click Code, then Show recent changes to see what moved.
Going further
Add Gemini features puts AI into the app itself, and it requires you to be 18 or over. For Python code, Share & export offers Export to Colab, then Open Colab. To reuse someone else's app, open their public link and click Copy Canvas for your own editable copy. Note that shared links open only at gemini.google.com, not in the mobile app.
Common mistakes
- Sharing an app that holds real data. Google says the public link lets anyone view and edit data associated with it.
- Describing a bug in your own words when Show console has the exact message.
- Asking for a large change in the main prompt when one panel is wrong. Select & ask keeps the change to the part you selected.
- Trusting the math because the app looks finished. Canvas shows that it runs, not that the formula is right.
Sources
Checked 6 November 2026. Products change often, so confirm details with the vendor.