Tiny Online Tools logoTiny Online Toolssearchツールを検索…grid_viewすべてのツール
ホームchevron_right画像ツールchevron_rightSVGをJSXに変換SVGをJSXに変換

SVGをJSXに変換

SVGマークアップを正しいcamelCase属性を持つReact JSXコンポーネントに変換します。

入力SVG
大文字で始まる必要がありますTypeScript型を追加

JSX出力

jsx
infoExternal fonts referenced in the SVG may not render correctly in browsers. Self-contained SVGs work best.

関連ツール

SVG ストローク→塗りつぶし変換

SVG ストローク→塗りつぶし変換

SVGのストローク要素を塗りつぶしパスに変換して互換性を向上させます。

SVGをPNGに変換

SVGをPNGに変換

ブラウザで任意のサイズのPNG画像にSVGファイルをレンダリングします。

AVIF を JPG に変換

AVIF を JPG に変換

最新の AVIF 画像をブラウザ上で汎用的な JPG 形式に変換します。

AVIF を PNG に変換

AVIF を PNG に変換

最新の AVIF 画像をブラウザ上でロスレスな PNG 形式に変換します。

PDF ページ一括回転

PDF ページ一括回転

各 PDF ページをクリックで個別回転。向きが混在したスキャンの修正に最適。

PDF からテキスト抽出

PDF からテキスト抽出

ブラウザー上で PDF ファイルからプレーンテキストをすぐに抽出できます。アップロード不要、登録不要。

Frequency Analyzer

Frequency Analyzer

Real-time audio frequency analyzer for your microphone. Visualize the spectrum live with FFT in your browser.

apps

もっと見る

無料オンラインツールの全コレクションを見る。

SVG to JSX 変換er

変換 SVG markup into production-ready React components. This tool automates the conversion of SVG attributes to JSX syntax, eliminating manual refactoring and attribute renaming.

Automatic JSX 変換ations

JSX uses different attribute names than HTML SVG. The class attribute becomes className, for becomes htmlFor, and hyphenated SVG attributes like stroke-width 変換 to camelCase equivalents (strokeWidth). Manual conversion is error-prone and tedious—this tool handles everything automatically.

Style object conversion

Inline style strings in SVG (style="fill: red; stroke: blue") become JavaScript style objects ({ fill: "red", stroke: "blue" }). This maintains your original styling while following React conventions.

TypeScript support

Optionally 生成 TypeScript-typed components with props interfaces. This is ideal for component libraries and teams using strict type checking. 生成d components accept SVG attributes and className props for flexibility.

Component integration

Name your component and get copy-paste ready code. The 生成d component works immediately in React and Next.js projects without additional adjustments. Use inline or export as a separate file in your components directory.

Design system workflows

変換 icon libraries to React components for consistent styling, 作成 reusable SVG button and form components, build accessible icon systems with proper ARIA attributes, 生成 component variations from design tool exports, and maintain TypeScript compliance in enterprise projects.