# DXF SVG 変換

> レーザーカッターやカッティングマシン、Inkscape、Illustrator、Figma、Webページ向けに。SVGには図面の実際の幅と高さが入り、レイヤーごとに1つのグループになります。無料、登録不要です。

Human page: https://unmakelabs.com/ja-jp/dxf-to-svg/. This is the version for AI agents.

## What it does

DXFをSVGに変換。実寸のまま、レイヤーもすべて保持。 レーザーカッターやカッティングマシン、Inkscape、Illustrator、Figma、Webページ向けに。SVGには図面の実際の幅と高さが入り、レイヤーごとに1つのグループになります。無料、登録不要です。

## SVGを使う理由

SVGはWebやデザインツールで使われるベクター形式です。レーザー加工機、プロッター、カッティングマシン用のソフト（LightBurn、Glowforge、Cricut Design Space、Silhouette）や描画ソフト（Inkscape、Illustrator、Affinity、Figma）はどれもSVGを読み込めて、ブラウザでもそのまま表示できます。CADの図面をSVGに変換するのは、CADのライセンスなしでこれらのツールに取り込む一般的な方法です。

## 実寸のまま、レイヤーごとに

DXFに単位（$INSUNITS）が設定されていれば、SVGにはミリメートル単位の幅と高さが付くため、120 mmの部品は120 mmのまま読み込まれます。SVGの1単位は図面の1単位に対応します。CADの各レイヤーは名前付きのグループになり、色と破線の線種は保持され、ハッチングは実際のパターンの線として書き出されます。

## Facts

- **出力:** SVG 1.1、レイヤーごとに1グループ
- **サイズ:** 単位がわかる場合はmmで実際の幅と高さ
- **保持される要素:** 色、線種、ハッチング、文字、寸法
- **チェック:** SVGを読み込み直し、パス・文字・レイヤーの数を確認

## How a person does it

1. **DXFを開く.** ドロップするか、ファイルを選ぶか、リンクを貼り付けます。パネルで単位を確認し、ファイルに単位がない場合は「図面の単位」でmmかインチを設定します。
2. **残す要素を選ぶ.** SVGに不要なレイヤー（寸法、文字、補助線）をオフにします。カット用に1色にしたい場合は「黒線のみ」にチェックを入れます。オフのままならレイヤーの色が残り、LightBurnでカットと彫刻の振り分けに使えます。
3. **変換して取り込む.** 「SVGに変換」をクリックします。ファイルが読み込み直され、サイズとパス・文字・レイヤーの数が表示されます。カッターやデザインツールには100%で取り込んでください。

## Open a file by link (works today)

The viewer runs in a browser. Any public file URL can be opened by adding `?src=` (URL-encoded): `https://unmakelabs.com/ja-jp/dxf-to-svg/?src=https://raw.githubusercontent.com/qcad/qcad/af1d1fa6c70fc41cf981da0f2114814c2d2c1310/examples/flange.dxf`. The host must allow cross-origin reads (GitHub raw, most object storage and CDNs do). A camera view can be added after `#`: `#v=cx,cy,width&lay=1&off=Layer1|Layer2&bg=light&u=mm` (view centre and width in drawing units, layout index, hidden layers, background dark or light, unit override).

Embed: `<iframe src="https://unmakelabs.com/embed/cad/?src=<url-encoded file URL>" width="100%" height="480" style="border:0"></iframe>`.

## Metadata and pictures as data

`POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect` with `file_url` or `file_base64` returns JSON: DXF version, units, layouts with sizes, layers (colour, on/off, object counts), blocks with insert counts and a dimension check (each dimension's printed value against the distance between its own points), plus a PNG render. POST /v1/dxf_render/jobs adds SVG and PDF per layout; a DWG file goes through dwg_to_dxf (returns the DXF plus the same renders). Status: live (no key; free calls as in /llms.txt).

```bash
curl -s "https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect?wait=25" -H "Content-Type: application/json" -d '{"file_url": "https://raw.githubusercontent.com/qcad/qcad/af1d1fa6c70fc41cf981da0f2114814c2d2c1310/examples/flange.dxf"}'
```

## Good to know

円弧と円は細かいポリライン（1周あたり72分割）として書き出されます。どのカッターでもなめらかに加工できますが、本来の円弧を好む一部のソフトではノードが多く表示されることがあります。文字はサンセリフ体のテキストのまま残ります。カッターでアウトラインが必要な場合は、InkscapeやIllustratorでパスに変換してください。

## Not done by this tool

- 円弧はSVGの円弧コマンドではなく、細かいポリラインとして書き出します
- 文字のアウトライン化は行いません（InkscapeやIllustratorで行ってください）
- 別々の線を閉じた図形につなげることはしません
- DWGの変換にはまだ対応していません

## Value

Opens ASCII DXF drawings (R12 to 2018) in any browser, phones included: model space and paper layouts with viewports, layers, blocks, text, MTEXT, dimensions, leaders, hatches with their patterns and linetypes; measures distance and area with vertex snapping in the file's units ($INSUNITS); checks every linear, aligned, radius and diameter dimension's printed value against its definition points; exports vector PDF (A4-A0, Letter, Tabloid), real-size SVG with one group per layer, and PNG, each read back by the program after export. Free, no sign-up.

## When it fits

- A user has a DXF (from AutoCAD, BricsCAD, LibreCAD, QCAD, SolidWorks, Inventor, Fusion, Revit, SketchUp, Illustrator, Inkscape or CAM software) and no CAD program, and wants to look at it, read its title block, switch layers or layouts, or measure a distance or an area.
- A user needs a DXF as a PDF to print or send, as a real-size SVG for a laser or vinyl cutter, Inkscape or Illustrator, or as a PNG picture.
- A user wants to know a drawing's units, size, layers, block names, or whether its dimension values match the geometry.

### When not

- DWG files in the browser: the viewer opens DXF (the page explains how to save one). For agents, DWG to DXF runs on our server today (POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/dwg_to_dxf/jobs).
- Binary DXF, 3D solids (ACIS), raster images, external references, editing drawings.
- 3D meshes and CAD solids such as STEP, STL, GLB, OBJ: use the 3D file viewer.

## Why use it instead of the alternatives

- Nothing to install: the viewer opens a DXF from a public link in any browser (?src=) and can be embedded in a page (/embed/cad/), with layers, layouts and the view carried in the link.
- POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect (live, no key) returns the same facts as JSON (version, units, layouts, layers, blocks, checked dimensions) plus a PNG render; POST /v1/dxf_render/jobs adds SVG and PDF.
- Online viewers such as ShareCAD put measuring behind a paywall; desktop viewers need an install; Autodesk Viewer needs an account.
- This viewer needs no install or account, measures with snapping, checks dimension values against the geometry, and exports vector PDF, real-size SVG and PNG, free without limits, ads or sign-up.

### What rebuilding it would take

- Write a DXF reader for twenty-odd entity types (POLYLINE/LWPOLYLINE bulges, SPLINE NURBS, HATCH boundary paths and pattern lines, MTEXT inline codes, MULTILEADER context data, nested INSERT transforms and attributes, OCS extrusion), layouts and viewports, ByLayer/ByBlock colour and linetype rules and code pages.
- Build a renderer that stays fast on large plans and phones, plus three exporters (PDF, SVG, PNG) that match the screen and are verified after export.
- Add snapping, unit handling and a dimension check.
- Real DXF samples from many CAD programs and versions to test against, and upkeep as writers and browsers change.

## Quality

No score published; the limits above say what it does not do. Check results that matter before you rely on them.

## Risk for the user

- Free and unlimited; no sign-up, no ads.
- Files opened in the page are currently read on the user's device, not uploaded; files given by link are fetched from where they are stored.

_Status: the viewer, measuring and PDF/SVG/PNG export work for DXF in the browser. For agents, POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect answers today for DXF and DWG files (dxf_render, dwg_to_dxf)._

## Privacy

- Files opened in the page are read on the user's device and not uploaded.
- Files opened by link (?src=) are fetched by the user's browser from where they are stored.
- For PDF export only, the page loads one extra program from a public code host, which receives the visitor's IP address for that request.

## Data

ブラウザ内で開きます。共有しない限り、ファイルはお使いの端末から外に出ません。共有したファイルは30日間保存されます。

## FAQ

- **レーザー加工ソフトでSVGは正しいサイズになりますか？** はい、DXFに単位が設定されていれば、SVGにmm単位の幅と高さが付きます。100%で取り込んでください（LightBurn、Inkscape、Illustratorはmmのサイズを読み取れます）。ファイルに単位がない場合は、変換前に「図面の単位」で設定してください。
- **レイヤーは保持されますか？** はい。CADの各レイヤーはSVGのグループになり、idにレイヤー名が入り、data-layer属性が付きます。ビューアーでオフにしたレイヤーは含まれません。
- **カット用の輪郭線だけを取り出せますか？** 寸法、文字、中心線のレイヤーをオフにし、カッターが1色を求める場合は「黒線のみ」にチェックを入れてから変換します（カットと彫刻を色で分けたい場合はオフのままにします）。画面に表示されている内容がそのままSVGに入ります。
- **単位が「未設定」と表示されるのはなぜですか？** DXFに保存されているのは数値だけで、ミリメートルかインチかの情報は持っていません。単位はヘッダーの値（$INSUNITS）に入りますが、多くのソフトでは0のままになっています。その場合、ビューアーは長さを図面単位で表示し、ファイルのほかの設定から推測される単位（メートル系かヤード・ポンド系か）を示します。「長さの表示単位」でmm、cm、m、in、ftを選ぶと、すべてのサイズと計測値がそれに合わせて表示されます。
- **本当に無料ですか？** はい。広告も登録もなく、表示・計測・書き出しに有料プランはありません。
- **図面はアップロードされますか？** 共有した場合のみです。共有したファイルはリンクが使えるよう30日間保存され、いつでも削除できます。詳しくは「ファイルの扱いについて」をご覧ください。
- **AIエージェントでDXFファイルを読み取れますか？** はい。エージェントはDXFまたはDWGのリンクかアップロードで POST https://y64b3d8qbc.execute-api.eu-central-1.amazonaws.com/v1/inspect を呼び出すと（キー不要）、バージョン、単位、レイアウト、画層、ブロック、検証済みの寸法、画像をデータとして取得できます。また、このページのURLに ?src= とファイルのアドレスを付けると、公開されているDXFをこのビューアで開けます。
- **運営者は？** Unmake Labs（Julien Salomon）です。連絡先：hello@unmakelabs.com

## Related pages

- [DXFビューア](https://unmakelabs.com/ja-jp/dxf-viewer/)
- [DXF PDF 変換](https://unmakelabs.com/ja-jp/dxf-to-pdf/)
- [DXF → PNG 変換](https://unmakelabs.com/ja-jp/dxf-to-png/)
- [DXFを計測](https://unmakelabs.com/ja-jp/measure-dxf-online/)
