YAML vs JSON
YAML is easier for people to read and write, supports comments, and powers Kubernetes manifests, Docker Compose files and GitHub Actions. JSON is stricter and is what most APIs speak. Convert between them instantly with the YAML to JSON converter, which runs entirely in your browser so secrets stay private.
Common YAML Errors
- Tabs instead of spaces for indentation
- Inconsistent indentation within a list or map
- Unquoted strings containing ": " or starting with special characters
- Values like yes, no, on, off being read as booleans in older YAML versions; quote them if you mean text
PX to REM
rem is relative to the root font size (16px by default), so 1rem = 16px, 1.5rem = 24px and 0.875rem = 14px. Using rem means text scales when users raise their browser font size. Convert any value with the px to rem converter.
Aspect Ratios Cheat Sheet
| Ratio | Use | Size |
|---|---|---|
| 16:9 | Video, hero images | 1920 × 1080 |
| 9:16 | Reels, Shorts, Stories | 1080 × 1920 |
| 1:1 | Avatars, square posts | 1080 × 1080 |
| 4:5 | Instagram portrait | 1080 × 1350 |
| 1.91:1 | Open Graph link preview | 1200 × 630 |
In CSS, use the aspect-ratio property (e.g. aspect-ratio: 16 / 9) to reserve space and avoid layout shift. Work out sizes with the aspect ratio calculator.
