Skip to content

Practical JSON · Pretty Print vs Minified

All tutorials

Pretty Print vs Minified

Pretty-printed JSON uses indentation and newlines for readability—ideal for config files and debugging. Minified JSON removes whitespace to reduce size—ideal for APIs and network transfer. Same data, different formatting.

// Pretty (readable)
{
  "name": "Alice",
  "age": 30
}

// Minified (compact)
{"name":"Alice","age":30}