HTML
<img src="a" class="b">
JSX
<img src="a" className="b" />
Design Tools
Convert HTML snippets to React JSX in the browser. Rename class/for to className/htmlFor, close void tags, and convert inline styles toward object form. Conversion stays local.
Favorite this tool
No favorite storage mode has been selected.
Quick actions
Copy this tool URL or open the system share sheet on a supported device.
设计配色
Convert HTML snippets to React JSX in the browser. Rename class/for to className/htmlFor, close void tags, and convert inline styles toward object form. Conversion stays local.
HTML
<img src="a" class="b">
JSX
<img src="a" className="b" />
No. It only handles DOM-level attribute names, void-tag closing, and related syntax—not framework logic.
style attributes are converted toward React style objects when possible. Complex expressions still need a manual check.
Tools
Continue with another translated tool for a nearby task.
CSS to Tailwind
Paste CSS declarations and map them to Tailwind utility classes where possible. Common layout, spacing, and color rules become standard classes; unmatched values fall back to arbitrary-value syntax.
HTML to Markdown
Convert HTML to Markdown in your browser while preserving common structure such as headings, lists, tables, and links. Useful for migrating web content into editable documents.
Markdown to HTML
Convert Markdown to HTML in your browser with a live preview, side-by-side view, and copy or export options. Processing stays on the page.