Skip to content
FixMySVG

Free tool

Check your SVG’s viewBox and size

Drop an SVG to read its viewBox, width, height and units, and see whether they agree with each other. Nothing is uploaded; the file is read in your browser.

Drop an SVG here

or

One .svg file, up to 15 MB.

Processed in your browser — your SVG stays on your device.

On this page

What the checker reads

An SVG’s size information lives on the root <svg> element, in up to three attributes. The checker shows each one and what follows from them:

  • viewBox: four numbers (min-x, min-y, width and height) that define which area of the drawing’s own coordinate system is shown (MDN: viewBox). Its width and height must be positive.
  • width and height: the size the file asks to be displayed at, with or without a unit.
  • Units: px, in, cm, mm, pt or pc, or none at all (a bare number is read as pixels). Percentages say nothing about physical size.
  • Aspect ratios: the width-to-height proportion of the viewBox and of the width/height attributes, side by side.
  • Physical size: shown in inches and millimeters when the width and height use absolute units (in, cm, mm, pt or pc).
<svg xmlns="http://www.w3.org/2000/svg"
     width="4in" height="3in"
     viewBox="0 0 400 300">
A consistent setup: a 4 × 3 in size and a viewBox with the same 4:3 proportions.

Reading the status

StatusWhat it meansCan Safe Fix help?
✅ ValidFour numbers with a positive width and height.Nothing to fix.
⚠️ MissingThere’s no viewBox, so the design can’t scale predictably.Yes, when the width and height are known.
❌ InvalidNot four numbers, or a width or height of zero or less.Yes, when the width and height are known; otherwise replace it with valid values (see below).
⚠️ MismatchThe viewBox and the width/height have different proportions.No: decide which is right, then make them match.

Missing. Without a viewBox, the drawing has no defined relationship to its width and height, so resizing it can crop or shift the artwork instead of scaling it. Cricut doesn’t document viewBox requirements; FixMySVG flags a missing one because it makes size and scaling less predictable.

Real analyzer result

Sample file: 12-missing-viewbox.svg

Sample: a size with no viewBox

Paths
3
Commands (≈ nodes)
39
Elements
4
Groups
0
File size
533 B
Size
1200px × 900px
viewBox
none
Complexity
Low

Cricut compatibility: Needs attention

  • Missing viewBox
This file sets a width of 1200px and a height of 900px but has no viewBox. FixMySVG’s analyzer marks it Needs attention, and Safe Fix can add viewBox="0 0 1200 900" from the width and height.Open this sample in the checker →

Invalid. A viewBox like 0 0 -400 300 has a negative width. The SVG 2 specification treats a negative width or height as an error that invalidates the viewBox, and a value of zero disables rendering altogether (W3C SVG 2: the viewBox attribute). Either way, the file no longer says clearly how the drawing maps to its size. The usual repair is 0 0 followed by the width and height of the drawing area in the file’s own units, and Safe Fix makes exactly that replacement when the file has a usable width and height.

Mismatch. When the proportions differ, the SVG standard fits the viewBox inside the width and height without distorting it, centered by default, which leaves empty space on two sides; preserveAspectRatio="none" stretches it instead (MDN: preserveAspectRatio). Cricut doesn’t document how Design Space handles either case, so it’s safer to make the proportions match.

Units, pixels and inches

Absolute units have fixed definitions in the CSS standard that SVG uses: 1 in = 2.54 cm = 96 px, 1 pt = 1/72 in and 1 pc = 1/6 in (W3C CSS Values: absolute lengths). A file sized in inches or millimeters therefore states its physical size directly, and the checker converts it to both.

Pixel sizes are where the confusion starts. By the standard, the 1200 × 900 px sample is 12.5 × 9.4 in. Design Space, however, is widely reported by Cricut users to read pixels at 72 per inch, which would make the same file about 16.7 × 12.5 in. Cricut doesn’t document its conversion, so for pixel-sized files, check the size in Design Space after uploading.

FixMySVG guidance

For cut files, set the document size in inches or millimeters before exporting (in Inkscape, under Document Properties). The size is then written in absolute units and doesn’t depend on anyone’s pixel conversion.

Fixing viewBox and size problems

What Safe Fix can and can’t do here

  • Automatically fixableIn the full SVG checker, Safe Fix adds a missing viewBox from the width and height when both are known, so the design scales predictably. Like every Safe Fix change, it’s verified by rendering the file before and after.
  • Manual action recommendedChoosing the physical size is up to you: set the width and height in inches or millimeters in your design app, or resize after uploading. A mismatch between the viewBox and the width/height also needs your decision about which one is right.
  • Can’t be reliably repaired automaticallyWhen a file doesn’t say what size it should be, no automatic fix can know the size you intended.

For background and step-by-step fixes, read what a missing viewBox does to an SVG and why an SVG imports at the wrong size in Cricut. If the viewBox is fine but the upload still fails, the main troubleshooting guide covers the other causes.

Add the missing viewBox

Run Safe Fix in the full checker and download the corrected SVG.

Fix my SVG

Frequently asked questions

Does Cricut require a viewBox?
Cricut doesn’t document viewBox requirements. FixMySVG flags a missing or invalid viewBox because it makes the size and scaling of a design unpredictable.
Why does my SVG come in at the wrong size in Design Space?
A frequent reason is a size in pixels: the web standard uses 96 pixels per inch, while Design Space is widely reported to read 72. Sizing the file in inches or millimeters avoids the guesswork.
Can FixMySVG set the size of my design?
It can add a missing viewBox from the width and height, but it can’t decide the physical size you want. Set that in your design app or in Design Space.
What is the difference between the viewBox and width and height?
The viewBox defines the coordinate area of the drawing; width and height set how big that area is displayed. When both are present with matching proportions, the drawing scales cleanly.

Sources

More free SVG tools

  • Free tool

    SVG path counter

    Count the paths in an SVG and compare them with the 5,000-path limit Cricut documents for Design Space. See how many are over, plus nodes and groups.

  • Free tool

    Cricut SVG checker

    Test an SVG against the upload rules Cricut documents for Design Space and get a clear verdict, Ready, Needs attention or Not ready, with every reason listed.

  • Free tool

    SVG complexity checker

    Measure the paths, nodes, elements and group nesting in an SVG and see its complexity level, from Low to Very high, with the exact thresholds explained.