Skip to main content
Participant
October 27, 2025
Question

Export Illustrator File as SVG with millimeter as unit?

  • October 27, 2025
  • 1 reply
  • 285 views

Hello,

 

I want to use an Illustrator File that I exported as an SVG to follow a path, but I have issues with rescaling and finding the correct coordinates as this is not accurate enough.

Is there a way to export Illustrator files as an SVG (or another format that I can open as a text file) while keeping the units as millimeter?

 

Thank you for your help.

 

 

Best regards,

Michael

1 reply

Community Expert
October 27, 2025

How are you saving your SVG file? Are you using the SVG option under the File>Save As command? Or are you using the Export For Screens dialog? Different options are available in the two dialog boxes.

 

Usually when SVG files are exported they'll use the units of measure of the Illustrator document. In document setup, change the units setting from Inches to Millimeters.

 

Generally speaking, path accuracy can be improved by bumping the default setting of 2 decimal places up to 3 or 4.

Brad @ Roaring Mouse
Community Expert
Community Expert
October 28, 2025

"Usually when SVG files are exported they'll use the units of measure of the Illustrator document. In document setup, change the units setting from Inches to Millimeters."

Don't think so. Illustrator measurements are based on Postscript points no matter what, so even if the Units are set to Metric, they will always be converted to points in the writing of a SVG file, or, in reality, with no setting whatsover, which means the SVG code will default to pixels as the measurement, e.g a box 100 points x 100 points will be assumed as 100px x 100px

 

The more important and deciding factor is what level of precision the file is exported as. Especially for scaling, it should be at least "4" (decimal places). 

Monika Gause
Community Expert
Community Expert
November 4, 2025

I tried the export with more decimal places and found another phenomenon.

A little example:

I have the origin and three paths as the following:

 X in mmY in mm
Origin65,0065,00
1. Path202,87313,75
2. Path255,12313,75
3. Path324,50313,75

 

When I export the file as an SVG i get the following coordinates:

 X in unitsY in units
Origin184,2519684184,2519684
1. Path560,9028931889,3721313
2. Path709,0128784889,3721313
3. Path934,0153809889,3721313

 

When I now try to calculate a scaling factor for X they differ greatly from path to path. This is an issue as I can't calculate diffrent scalings for every path.

Did I miss something or is there a formula how Illustrator exports coordinates to SVG Files. I will also attatch my .ai and .svg file.


When you set up your file in pixels as a unit, does it then match?

Also: how are the rulers set up? Document rulers or global?