PNG to DXF Converter for Floor Plans
Convert a PNG to DXF in millimetres: upload a PNG, JPG or WebP image of a floor plan or drawing, set the scale from one wall you know the length of, and preview the lines before you download.
Drop an image here
PNG, JPG or WebP. Your image isn't uploaded. Tracing runs in your browser.
Draw a line over one wall on your image, then type its real length.
Upload an image first, then draw the line on it.
Your image appears here. Upload one on the left, then draw a line over a wall of known length.
Your DXF drawing appears here after you press Convert.
Upload, scale and preview are free. Downloading the DXF needs a signed-in paid account and takes 1 credit each time.
Why scale matters when you convert an image to DXF
An image has pixels, not metres. If you convert it without telling the converter how long anything is, the DXF opens in your CAD program at an arbitrary size and every dimension you read off it is wrong. Wrong size is a frequent complaint in CAD forum threads about turning a floor plan picture into CAD lines.
So this converter asks for one thing before it converts: draw a line over a wall whose real length you know, and type that length in metres or feet. Everything else in the drawing is scaled from that line, and the DXF is written in millimetres.
How to convert a PNG to DXF
- 01
Upload your image. Choose a PNG, JPG or WebP photo or scan of a floor plan or drawing. The tracing runs in your browser.
- 02
Set the scale. Drag a line across one wall on the image, then type that wall's real length and pick m or ft. Details are in Stage 2 below.
- 03
Choose a drawing type. "Floor plan or sketch" for plans and drawings, "Laser or CNC cutting" for cut files. Leave "Keep room names and text" ticked if you want small marks such as labels kept on their own layer.
- 04
Convert and check the preview. The DXF preview sits next to your image, with the layers and the number of shapes under it. If it looks cluttered, try a cleaner image.
- 05
Download, then check the scale in your CAD program. Sign in, download the DXF, open it, and measure the same wall you used for the scale line. The steps are in Open the DXF in AutoCAD.


Before you convert: what to check
Most bad results start with the image or the typed length. This checklist follows the order you work in.
Stage 1: Prepare the image
- Do
Use the sharpest, highest-contrast copy you have, such as a PNG export or a flat scan.
Don'tUse a screenshot of a screenshot.
WhyThe converter turns the image into black and white first and traces the black, so fuzzy edges become wobbly lines.
- Do
Crop to the plan itself.
Don'tLeave the drawing frame, title block or notes in.
WhyAnything dark is traced. In our test scan the frame and caption came out as lines and rough shapes.
- Do
Keep one wall with a printed dimension in the crop.
Don'tConvert a plan with no known length unless you can measure one wall.
WhyAn assumed length gives a drawing only as right as the guess.
- Do
Use dark lines on a plain light background.
Don'tExpect dark or mid-tone tints, hatching and fills to disappear.
WhyThey are dark enough to trace, so a shaded plan becomes a very busy DXF. Pale tints usually do not trace at all.
- Do
Shoot a printed plan flat and straight on.
Don'tPhotograph it at an angle.
WhyWe don't straighten perspective.
- Do
Darken pale pencil or watercolour lines before you upload (see Pale lines: darken first).
Don'tAssume light lines will trace.
WhyLines only a little darker than the paper can disappear.
Stage 2: Set the scale
- Do
Drag the line along the whole wall, end to end, on the longest wall you have a length for. Put the two ends on the exact edges the printed dimension covers, and keep the line parallel to the wall.
Don'tUse a door opening or a short wall.
WhyA one-pixel slip on a short line becomes a large error across the whole drawing. A slanted line also works, but only if the length you type is for that slanted line.
- Do
Type the length of exactly the stretch you drew, and check the unit switch says m or ft to match.
Don'tType the length of the whole building while the line covers one room.
WhyMetres and feet differ by about 3.3 times, and a wrong number scales everything by the same factor.
- Do
Type feet as a decimal. A plan marked 57'6" is 57.5 ft, because 6 inches is 0.5 ft.
Don'tType 57'6" with the quote marks.
WhyThe length box takes a plain number, and the quote marks give an error.
- Do
Sanity-check the number before you press Convert. A bedroom is usually 3–4 m (10–13 ft) across, a whole flat 8–12 m.
Don'tAssume a wrong number will be caught.
WhyNothing stops you typing 35 for a wall that is 3.5 metres long; the drawing is simply ten times too big.


Stage 3: Pick the type and the text setting
- Do
Start with "Floor plan or sketch".
Don'tSwitch types hoping to fix a cluttered image.
WhyThe image decides the result more than the type. The numbers are in Two drawing types.
- Do
Choose "Laser or CNC cutting" only for cut files.
WhyIt merges overlapping lines.
- Do
Untick "Keep room names and text" if you only want the walls.
Don'tExpect editable text either way.
WhySmall marks are kept as outlines on a Text layer, not as typed words.
Stage 4: Read the preview, then check in CAD
- Do
Compare the preview with your image before you download: are the walls where they should be, and are there lines that were not in your picture?
WhyThe preview is free; the download takes 1 credit.
- Do
Read the line under the preview: layers, overlapping lines and shape count.
WhyA very high count on a simple plan usually means frame, hatching or text was traced.
- Do
Open the DXF and measure the wall you used for the scale, as shown in Open the DXF in AutoCAD.
WhyIt is the only check that catches a wrong typed length.
Preview free, download when it looks right
See the lines before you pay for the file.
Upload, scale line and preview are free for everyone. When the preview looks right, press "Download DXF · 1 credit". If you are not signed in you are asked to sign in first, and your image and scale are kept while you do. DXF download is for paid accounts: a free account is asked to buy a credit pack or plan. Correcting the scale afterwards in your CAD program costs no extra credit.

The tracing runs in your browser
Your image is not uploaded to be converted.
The converter reads your image, turns it into lines and builds the DXF inside the browser tab. Only when you press Download does the browser send a fingerprint of the file (a hash, not the picture), so the server can charge 1 credit once per download.
Two drawing types
Choose the type by what you will do with the file.
Floor plan or sketch is the default. Use it for plans, scans and drawings.
Laser or CNC cutting merges overlapping lines before it writes the file, says how many it merged, and puts the shapes on a Cut lines layer.
On our clean test plan the two types gave the same 219 shapes, and only the layer name differed. Neither type recognises walls or rooms.
Keep or drop room names
Labels can ride along on their own layer, or be left out.
Small marks, such as room names, areas and dimension numbers, count as text. With "Keep room names and text" ticked they are traced and placed on a Text layer; unticked, they are left out. These are outlines of the letters, not editable text.
On our test plan, ticked gave 219 shapes on two layers and unticked gave 24 shapes on one. In the unticked version the room names, areas and dimension numbers were gone, and the walls, door and window arcs and the dimension lines were what remained.

Clean cut files for laser and CNC
Overlapping lines merged, and a count of how many.
Overlapping lines are a problem for cutting files. In "Laser or CNC cutting" the converter merges overlapping line segments before it writes the DXF and tells you how many it merged, or says "No overlapping lines found". Check your first cut in your CAM software; this page is written mainly for floor plans.
The converter traces the outline of a dark stroke, so a thick stroke gives you its two edges rather than one centre line.
Open the DXF in AutoCAD and fix the scale if it is off
One measurement tells you whether the number you typed was right.
- 01
Type OPEN, set Files of type to DXF, choose the .dxf file and open it. If the drawing looks empty, type ZOOM, then E for Extents.
- 02
Run DIST and pick the two ends of a wall you know. The DXF is in millimetres, so a 9.9 m wall reads 9900. If the distance matches, you are done. If AutoCAD shows feet and inches (for example 825'-0"), that is only the display: type UNITS, set the type to Decimal, and measure again.
- 03
If the number is still wrong, run SCALE, select everything, pick a base point, then at the scale prompt (not at the Command prompt) type R for Reference. Pick the two ends of that wall, or type the length it shows now, then type the length it should be. AutoCAD rescales the whole drawing at once, and you do not need to convert again or spend another credit.
LibreCAD: open the file with File → Open (Ctrl+O) and measure with Info → Distance Point to Point.
DraftSight: measure with Tools → Inquiry → Get Distance. The result is in the drawing's units.
Layers: in your CAD program the layers are named WALLS and TEXT (and FIXTURES in Laser or CNC mode), not the Walls, Text and Cut lines labels shown in the preview.
A good-looking preview can still be the wrong size if the typed length was wrong, and measuring is how you find out.
When the result looks wrong: symptom, cause, fix
Find your symptom, check the cause, and apply the fix before you try a different image. The first row is the most common; if more than one row fits, fix the image first, because a cleaner image also fixes most of the rest.
| Symptom | Likely cause | Fix |
|---|---|---|
| The preview is full of extra lines, or there are thousands of tiny shapes | Likely causeA frame, hatching, shading, dark fills, paper texture or text, all dark enough to trace (1,755 shapes on a coloured hand-drawn plan). We could not trigger the "too much fine detail" message in our tests | FixCrop to the plan, use a plain high-contrast copy, then convert again |
| The drawing opens several times too big or too small | Likely causeThe typed length does not match the line you drew, the unit is wrong (m or ft), or a digit is missing | FixMeasure the wall you used, then run SCALE with Reference, as shown above |
| Room names are blobs, not readable | Likely causeLetters are small and are traced as outlines, not recognised as text | FixUntick "Keep room names and text" for a walls-only file, or add the names again in CAD |
| Lines wobble slightly, or thin and dashed lines break into short pieces | Likely causeThe converter simplifies the outline of each dark shape, so fine or broken strokes come through as short segments | FixUse a cleaner, higher-contrast copy; if you need single clean lines, redraw the plan in the floor plan creator |
Read the table top to bottom: most of the fixes are about the picture you upload, not the settings. Changing the drawing type rarely helps, and re-typing the length only helps when the symptom is a wrong size.
What converts well, and what doesn't
The converter turns your image to black and white, then traces the dark shapes it finds and writes them as outlines. It does not recognise walls, doors or rooms, so the DXF is a tracing to build on, not a finished plan.
Converts well
Clean black-on-white plans and CAD plots
Sharp scans on plain white paper
Ink line drawings with thick, dark, unbroken walls
Converts badly
Dark tints, hatching and fills (every dark edge becomes a line)
Pale lines that are close to the paper colour
Frames, title blocks and long notes (traced like walls)
Low-resolution or blurry images
Photos taken at an angle
In our own tests the busy scans came out cluttered. A coloured hand-drawn bungalow plan turned into 1,755 small shapes: the walls were recognisable, but the paper speckle, border and stone texture were traced too, so it is only a base to clean up. A clean exported plan gave the most usable result.
Before and after: our own test images








Old ink drawings: what we tested
We tried three public-domain historical plans, and none was turned away. The best, an ink floor plan, kept its walls and rooms clearly; thin and dashed lines broke into short pieces, lettering became solid blobs, and the walls wobbled a little. A sheet that also showed a site plan with trees became 4,772 tiny shapes, so convert one plan at a time. Two of the three lengths were assumed, because those drawings print none.
Treat results like these as a base to tidy in CAD. We have not tested modern pencil sketches, so we don't claim a good result for them.
Pale lines: darken first
Light lines on paper need help before they trace.
We also tried five 19th-century paper plans from a public-domain sketchbook. The dark ink one (a villa plan) traced well as it was. Four plans drawn in pale pink wash lost almost all their walls: only the dark photo edge and a few specks came through. Preparing the picture first fixed that.
- 01
Crop away the paper edge, book spine and any dark border.
- 02
Convert the picture to greyscale and raise the contrast, so the lines are clearly darker than the paper.
- 03
Remove shadows and uneven paper tone, for example with a local black-and-white threshold in an image editor.
- 04
Convert, then look at the preview. If paving or tile grids became a dense mesh, crop or use a different copy.
After this the pale plans came out with their rooms recognisable, but the shape count went up three to six times, because paper creases, speckles and tile grids were traced as well. Thick brush strokes also come out as two outline lines with a gap or fill between them, not one centre line. Handwriting does not become readable text.


JPG to DXF and other image formats
The converter reads JPG, PNG and WebP, so a JPG to DXF conversion works the same way as PNG to DXF: upload, draw the scale line, convert. JPEG compression leaves faint blotches around lines, so use the highest-quality copy you have, or save the plan as a PNG before you upload. A photo of a printed plan from your phone works if the page is flat, evenly lit and shot straight on.
If your plan is a PDF, take a screenshot or export a PNG of the page first. PDF upload is not on this page.

Who uses it
Homeowners with a floor plan from a listing or builder who want to measure or plan renovations in CAD.
Designers and drafters handed an old client drawing or scanned plan to redraw over.
Matterport users who exported a floor plan image and want a DXF.
Office tenants fitting out a space from the landlord's plan image.
Laser and CNC users, who can pick the "Laser or CNC cutting" type.
PNG to DXF questions
Will the DXF be to scale?
Yes, if the known length you typed is right. The DXF is written in millimetres, so measure the wall you used in your CAD program and use SCALE with Reference if the number is off.
Where should I draw the scale line?
Along a whole wall, end to end, on the longest wall that has a length you trust. Avoid door openings and short walls.
Why is my DXF about ten times too big or too small?
The typed length does not match the line you drew: a missing digit (35 instead of 3.5), the wrong unit, or a plan in feet and inches typed as 57'6" instead of 57.5. Your CAD program may also be showing feet and inches, so set UNITS to Decimal before you measure.
Can I convert a JPG or a phone photo to DXF?
Yes. JPG, PNG and WebP all work. For a phone photo, lay the plan flat, light it evenly and shoot straight on, because we don't correct perspective.
Which drawing type should I choose?
Start with "Floor plan or sketch". Use "Laser or CNC cutting" for cut files. If a result is cluttered, change the image before you change the type.
Can I convert a hand-drawn sketch?
You can upload one, but expect an outline tracing of your strokes, not a redrawn clean plan. Dark ink lines on plain paper traced well in our tests; pale pencil or watercolour lines can be lost, so darken them first. We have not tested modern pencil sketches, so we can't promise a good result.
Is it free?
Uploading, setting the scale and previewing are free. Downloading the DXF needs a signed-in paid account and takes 1 credit each time. See pricing.
Do my images get uploaded?
The image is traced in your browser and is not uploaded for conversion. Only a fingerprint of the file (a hash) is sent when you download.
Why is my DXF full of messy lines?
The converter traces every dark edge, so hatching, shading, a drawing frame and paper texture become lines. Crop to the plan and use a higher-contrast copy.
Does it recognise walls, doors and rooms?
No. It traces lines. In your CAD program the layers are named WALLS and TEXT (FIXTURES in laser mode), and walls, doors and windows are not sorted apart. If you need an editable plan, draw it in the floor plan creator.
Can I open the DXF in LibreCAD or other free software?
Yes. LibreCAD opens it from File → Open (Ctrl+O), and you can measure with Info → Distance Point to Point. DraftSight measures with Tools → Inquiry → Get Distance. The DXF is in millimetres.
Can I convert a Matterport floor plan to DXF?
If you have the floor plan as a PNG or JPG image, upload it like any other. This converter does not read Matterport's own file formats.
Can I get a DWG instead?
This page makes DXF files only. AutoCAD opens a DXF directly, and you can use Save As to store it as a DWG.
Can I use it for laser cutting or CNC?
Yes. Choose "Laser or CNC cutting" and the converter merges overlapping lines and tells you how many. A thick line gives you its two edges, not a centre line, so check your first cut file in your CAM software.