# balajmarius/svg2jsx

Transform SVG to valid JSX.

Repository: https://github.com/balajmarius/svg2jsx
Canonical: https://ross.abutalabs.com/products/svg2jsx
Homepage: https://svg2jsx.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: next-js, typescript, svg-to-react, vercel
Last push: 2026-08-09T17:26:08+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 35, longevity 100
- inputs: {"age_days": 3422, "days_push": 24, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1922, forks 70 (observed 2026-08-28T04:05:55.290640+00:00)

## What it is
A web tool that converts SVG markup into valid JSX code for React applications, with built-in SVGO optimization and live preview. It is built with Next.js, React, and TypeScript.

## Use cases
- convert svg to jsx
- transform svg attributes to react component code
- optimize svg before using in react
- paste svg markup and get jsx output
- drag and drop svg file to convert

## When to choose
- you need JSX-compatible React components from SVG files
- you want automatic attribute conversion like class to className and camelCase fixes
- you want built-in SVGO optimization in the same tool

## When to avoid
- you need batch CLI conversion of many SVGs at once
- you target frameworks other than React/JSX
- you need a library to embed conversion in your own build pipeline

## Facets
- artifact type: application
- maturity: active
- function: parser, developer-tools, web-framework
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: svg-to-jsx, react, svgo, code-conversion, nextjs, web-server, nodejs

## Member repositories
- balajmarius/svg2jsx (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:55.290640+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:09:40.244665+00:00, confidence not recorded.
  - readme: https://github.com/balajmarius/svg2jsx (fetched 2026-08-28T04:05:55.290640+00:00, sha c742e1d64d8c)
  - homepage: https://svg2jsx.com (fetched 2026-08-29T10:49:17.769618+00:00, sha ac747b815dba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
