---
title: "rendering svg precision"
description: "Reduce SVG coordinate precision to decrease file size. The optimal precision depends on the viewBox size, but in general reducing precision should be considered."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/rendering-svg-precision
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:37:38.713Z
license: CC-BY-4.0
attribution: "rendering svg precision — Claudary (https://claudary.paisolsolutions.com/skills/rendering-svg-precision)"
---

# rendering svg precision
Reduce SVG coordinate precision to decrease file size. The optimal precision depends on the viewBox size, but in general reducing precision should be considered.

## Overview

---
title: Optimize SVG Precision
impact: LOW
impactDescription: reduces file size
tags: rendering, svg, optimization, svgo
---

## Optimize SVG Precision

Reduce SVG coordinate precision to decrease file size. The optimal precision depends on the viewBox size, but in general reducing precision should be considered.

**Incorrect (excessive precision):**

```svg
<path d="M 10.293847 20.847362 L 30.938472 40.192837" />
```

**Correct (1 decimal place):**

```svg
<path d="M 10.3 20.8 L 30.9 40.2" />
```

**Automate with SVGO:**

```bash
npx svgo --precision=1 --multipass icon.svg
```

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/rendering-svg-precision) · https://claudary.paisolsolutions.com
