All apps

svg2jsx

Verified
balajmarius/svg2jsx 1.9k stars MIT
View source

A two-pane browser editor that rewrites SVG into React JSX.

svg2jsx turns SVG markup into JSX that drops straight into a React component. Paste or drop a file into the left pane and the right pane shows the converted code as you type, with class rewritten to className and kebab-case attributes turned into camelCase. Small switches add an ID cleanup, single quotes, React.memo or TypeScript typing to the output.

Why people choose svg2jsx

Side-by-side panes

The converted JSX updates in the right pane while you edit the SVG on the left.

Conversion switches

Toggle ID cleanup, quote style, React.memo and TypeScript typing for the generated component.

Drag and drop

Drop an SVG file onto the page or pick it with the upload button.

Like svg2jsx? Install it on your own server

One command installs PanelAlpha Engine and gets svg2jsx running on your server, with no time limit.

curl -fsSL get.panelalpha.com/engine | sh -s -- --repo github.com/balajmarius/svg2jsx

Run it as root on your Linux server.

You’ll find server requirements and step-by-step instructions in our installation guide.

Is this your repository?

Add a badge to your README and give your users a free live preview: one click, no sign-up.
Get the badge

Pick a badge

Show them on
Badge

Add it to your README

Format
[![Try it for free on GO!](https://go.panelalpha.com/button/github.com/balajmarius/svg2jsx.svg?style=free)](https://go.panelalpha.com/repo/github.com/balajmarius/svg2jsx)

The badge links to this page, where your users start the preview. Markdown shows the light badge to everyone; HTML shows the dark one to readers who use a dark theme on GitHub.

Other apps you may like

Uptime monitoring
Uptime Kuma screenshot
UptimeRobot Pingdom +1
95k Monitoring

A self-hosted monitoring tool that checks your websites, servers and services on a schedule and reports the results in one dashboard. Each monitor shows response time, uptime for the day and the month, certificate expiry and a ping chart, and failures go out to Telegram, Discord, Slack, email or one of 90+ other services. Status pages can be mapped to your own domains.

Explore app
REST and GraphQL API client
Hoppscotch screenshot
Postman Insomnia
81k Developer tools

Hoppscotch is an API client that runs in the browser: pick a method, type an endpoint and read the response status, headers and body. Requests are grouped into nested collections and environments, with pre-request and post-request JavaScript for variables and tests. It is also available as a PWA, a desktop app and a CLI, and self-hosting adds team workspaces.

Explore app
VS Code in the browser
code-server screenshot
GitHub Codespaces Gitpod
80k Developer tools

code-server runs VS Code on a remote machine and serves the whole editor in your browser, so one development environment follows you across devices. You install it on a Linux host with a script or a container, open the URL and log in with the password from its config file. Extensions, the integrated terminal and your files all live on the server.

Explore app