Text & code · runs locally

SVG to JSX converter

Paste SVG markup, get React-ready JSX — className, camelCase attributes, style objects, comments, and an optional exported component.

Runs on your device No uploads, ever Free, no account

How to use this tool

  1. 1
    Paste the SVG

    From your design tool, an icon set, or the source of an illustration — comments, styles and namespaces are all handled.

  2. 2
    Choose the shape

    Export just the fragment, or wrap it in export default function Icon(props) {…} with the <svg {...props}> spread in place.

  3. 3
    Copy Icon.jsx

    The result drops straight into a React/Next project — no hand-fixing className or stroke-width by hand.

The fine print

This page has no server behind it. Files are read, changed and re-built by your own browser — then they disappear when you close the tab. That's the whole privacy policy, applied.


Questions people actually ask

What about data-* and aria-* attributes?

They pass through untouched, exactly as React expects. Everything else hyphenated (stroke-width, clip-path, xlink:href…) is camelCased or mapped to its JSX prop.

Is the output a valid component?

Yes — with the wrap option on, the SVG is indented inside an exported function component and spreads props onto the root <svg>, so consumers can pass className, aria-label and style.


Feedback

Send a message

Messages, reviews and bug reports go to a private feedback log on this site. Nothing is published, and your files are never uploaded.

For a broken tool: the tool name, browser, and the steps that led to it are the most useful things. Do not paste passwords, keys or a sensitive file.

Files are never uploaded. Only this message is stored.

PDF

Tool preview

A short description of the tool.

Runs entirely in your browser. The file never leaves this device.

Open tool