How to open a JSX file from Claude: in a browser, on iPhone, and on Mac
Quick answer
To open a JSX file from Claude, open Convika's free React viewer in your browser, click Open file, and choose the .jsx file. The app runs on the page with its buttons working, with no install and no build, on an iPhone, a Mac, or a Windows PC. A .jsx file holds a React component, which a browser shows as code until it is compiled. The viewer compiles it in your browser, then gives you one .html file to download or a link to send.
Pro starts with a free trial: 7 days free, then $12 a month. Cancel any time before the trial ends.
On this page
To open a JSX file from Claude, open Convika's free React viewer in your browser, click Open file, and choose the .jsx file. The app Claude built runs on the page, with its buttons, inputs, and charts working. You install nothing and build nothing, and it works the same on an iPhone, a Mac, and a Windows PC.
A .jsx file holds a React component: the code of the calculator, quiz, dashboard, or game you asked Claude for. Claude's artifact panel compiles that code and shows the running app. A browser tab and a text editor show the code itself. The React viewer does the compiling in your browser, so the file opens as the app.
Open a JSX file from Claude in a browser in 3 steps
These steps are the same in Chrome, Safari, Edge, and Firefox.
1. Open the React viewer
Go to convika.com/tools/react-viewer. It's free and needs no account.
2. Click "Open file" and choose the .jsx file
Click Open file, then Choose a .jsx or .tsx file, and pick the file. On a computer you can also drop the file on the box. The viewer opens .jsx, .tsx, .js, and .ts files up to 2 MB. The file opens on the page and is not uploaded: your browser compiles it on your device.
3. Use the app, then keep it
The app runs in a frame on the page. Click its buttons and type in its fields. Switch Width to Phone to see it at a phone's size. Then keep it in one of 2 ways:
- Download as .html saves the app as one HTML file that opens in any browser that is online.
- Get a link by uploading this app gives you a private link that works for 3 minutes, with no signup.
No file, only the artifact in Claude? Copy the artifact's code, click Paste code in the viewer, paste it, and click Run the code.
On iPhone
- Save the file to Files. Anthropic's file creation guide says of the Claude app: “when you tap "Download" on Claude Mobile, the file will open in either the system preview or a separate app.” That preview is not the running app. Save the file to the Files app from there. A file you downloaded in Safari is already in Files, under Downloads.
- Open the React viewer in Safari. Go to convika.com/tools/react-viewer.
- Tap "Open file", then "Choose a .jsx or .tsx file", and pick the file in the Files sheet. The app runs in Safari.
To skip the file, copy the code in the Claude app, tap Paste code in the viewer, paste, and tap Run the code.
Apple's Files guide for iPhone says what tapping the file in Files does: “If you haven’t installed the app that created a file, a preview of the file opens in Quick Look.”
On Mac
Double-clicking a .jsx file hands it to whichever app your Mac has set for that file type, which reads it as code. Open the app Claude built this way:
- Open convika.com/tools/react-viewer in Safari or Chrome.
- Click Open file, then drag the
.jsxfile from Finder or your Downloads folder onto the box. - The app runs. Click Download as .html to keep a file that opens with a double-click in any browser.
To read or edit the code instead, Apple's Mac guide gives the steps: “Control-click the file, choose Open With, then choose an app.”
What each way of opening a .jsx file shows
| Way to open it | What you see | The app works |
|---|---|---|
| Choose it in Convika's React viewer | The running app | Yes |
| Paste its code into the React viewer | The running app | Yes |
| Double-click it on a Mac or a PC | The code, in the app set for that file type | No |
| Drag it into a browser tab | The code, as text | No |
| Tap it in Files on iPhone | A Quick Look preview of the file | No |
Rename it to .html | The code, as text on a page | No |
We ran it on November 22, 2026, in Playwright's Chromium 156 at 1280 × 900 and in its WebKit 27.2 at an iPhone 15's size, with a tip calculator saved as TipCalculator.jsx: one component with a useState hook, Tailwind classes, a number field, and a button. Chosen with Open file in the React viewer, the calculator ran in both: the heading took its Tailwind colour, and one click on the button moved the tip from $6.00 to $8.00. Download as .html saved a 15 KB TipCalculator.html, which ran the same when opened from disk. Opened as an address in the browser, the .jsx file itself showed its code as text, starting with import { useState } from "react";.
What the React viewer runs
The viewer loads the libraries Claude's React artifacts use:
- React 18 with its hooks, such as
useState,useEffect, anduseReducer - Tailwind classes, with shadcn/ui's colours such as
bg-primary lucide-reacticons andrechartscharts- shadcn/ui's
@/components/uifiles: Card, Button, Input, Tabs, Select, Slider, Switch, Dialog, and more - Other npm packages the code imports by name, such as
framer-motion,d3, orlodash - TypeScript: a
.tsxfile opens the same way
The viewer shows an error with the line of your code it is on. If the error names another file, such as ./Chart, the app was written across several files. Paste this into the same chat with Claude, then open the new file:
Put the whole app in one .jsx file, with every component in that file.
Send the app as a link
Get a link by uploading this app makes a private link that works for 3 minutes: time to open the app on your phone. For a link that stays the same, publish the app:
- In the React viewer, click Download as .html.
- Open Convika's free HTML publishing tool and drop the file in. You get a preview link without an account.
- Click Keep this page — free, no card and sign up. The page moves into your account, and its scripts run in the dashboard preview.
- Click Publish page. Under Who can open this page?, choose Public and click Next. The first time you publish, Convika shows Publish free, and under it Publish without the Convika bar, which starts Pro with its free trial: 7 days free, then $12 a month, and you can cancel any time before the trial ends. To publish on Free, click Publish free.
- Copy the address, such as
yourapp.convika.page, and send it. Anyone opens it in a browser and uses the app, with no Claude account.
The Free plan includes 1 published page and 10,000 page views a month, and the dashboard shows how many people opened the app. How to publish a Claude artifact covers your own domain and a form that keeps what people send.
Frequently asked questions
How do I open a JSX file in a browser?
Open Convika's free React viewer in the browser, click Open file, and choose the .jsx file. The viewer compiles the component in your browser and runs the app on the page. Dragging the file straight into a browser tab shows its code as text, because a browser reads HTML, not JSX.
How do I open a JSX file on iPhone?
Save the file to the Files app, open convika.com/tools/react-viewer in Safari, tap Open file, then Choose a .jsx or .tsx file, and pick the file. The app runs in Safari with no app to install. You can also copy the code in the Claude app and paste it into the viewer with Paste code.
How do I open a JSX file from Claude on a Mac?
Open convika.com/tools/react-viewer in Safari or Chrome, click Open file, and drag the .jsx file from Finder onto the box. The app runs in the browser. Double-clicking the file opens its code instead. To pick the app that opens it, Apple's Mac guide says to Control-click the file and choose Open With.
What is a JSX file from Claude?
It is the code of a React component: the app Claude built for you, written in JavaScript with HTML-like tags inside it. Anthropic's file creation guide lists “HTML or react apps” among the artifacts Claude creates. Claude's artifact panel runs that code for you. Outside Claude, the React viewer runs it.
Why does my JSX file show code instead of the app?
A .jsx file has to be compiled before a browser can run it, and its imports point to npm packages such as React. A browser tab and a text editor do none of that, so they show the code. Choose the file in the React viewer and it runs as the app.
How do I convert a JSX file to HTML?
Choose the file in the React viewer and click Download as .html. You get one HTML file with your component in it, compiled. It loads React and the libraries from public CDNs, so it opens in any browser that is online, and any host takes it.
Is the JSX file uploaded when I open it?
No. Your browser compiles the code and builds the page on your device. The app is uploaded only when you click Get a link by uploading this app.
Can I open a .tsx file the same way?
Yes. The React viewer opens .jsx, .tsx, .js, and .ts files. It strips the TypeScript types and runs the component.
Sources
- What are artifacts and how do I use them? (Anthropic) (read November 22, 2026)
- Create and edit files with Claude (Anthropic) (read November 22, 2026)
- Find and view files and folders in Files on iPhone (Apple, iPhone User Guide) (read November 22, 2026)
- Choose an app to open a file on Mac (Apple, Mac User Guide) (read November 22, 2026)
Next step
How to password protect an HTML page or website
A JavaScript password script leaves the password in the page source. To password protect an HTML page or link, encrypt the file or let a server check it.
Related articles
- How to download a Claude artifact as an HTML file, and share it as a linkWhat Claude lets you save from each kind of artifact, how to save the code as an .html file, and when to send Claude's own link or a link of your own.
- How to publish a Claude artifact as a real website on your own domainClaude's Share link keeps an artifact on claude.ai. Publish its code on Convika for your own domain, a form that keeps signups, and visit stats, free.
- ChatGPT, Claude, or Gemini gave me HTML code: how do I run it and see the page?To run HTML code from ChatGPT, Claude, or Gemini, paste the whole code block into a free HTML viewer and it runs in your browser. Or save it as an .html file.
- file://error_page_loaded.html, code, or a blank page: how to open your HTML filefile://error_page_loaded.html is what Chrome on an iPhone or iPad shows when a page didn't load. Open your HTML file in a free viewer in a few taps.
- How to open an HTML file on iPhoneOpen an HTML file on iPhone in 3 steps: save it to Files, open a free HTML viewer in Safari, tap Choose an .html file. It runs with CSS and JavaScript.
- How do I open an HTML file on a Mac, and why does my AI-made page break?A Mac opens an .html file in your browser from a file:// address. Our October 2026 test shows what Chrome blocks there, and 3 fixes: one file, a server, a link.
Skipbox
Cheap & fast GitHub Actions runners, unlimited for $39 a month
Your own machine keeps Docker layers and package caches between jobs. Switch by changing one runs-on line.
Start a free Skipbox trial