# Clean document whitespace

Build-time release reference. Runtime readiness, deployment, payment settlement and external indexing are not evaluated here. Prices are proposed; this file cannot authorize execution or payment.

Use for predictable whitespace cleanup before diffing or storing text. Normalizes CR/LF separators to LF or CRLF, optionally collapses ASCII spaces/tabs, trims selected line edges, limits consecutive blank lines, and removes outer blank lines. Blank lines contain only spaces/tabs; other Unicode whitespace is preserved. Set maxBlankLines to null to preserve every blank line. This can change indentation-sensitive documents.

Release: 0.29.0. Built: 2026-10-06T15:38:00Z.

## Choose for
- Apply explicit line separator and ASCII whitespace cleanup.

## Outside this profile
- Preserving all indentation-sensitive semantics automatically.

Proposed nominal USD 0.003 per successful call; payer fees excluded. No verified runtime availability.

- [Exact release contract](/reference/services/whitespace-clean.json)
- [Input schema](/reference/schemas/whitespace-clean.input.json)
- [Output schema](/reference/schemas/whitespace-clean.output.json)
- [Fixed example](/reference/examples/whitespace-clean.json)
- [Complete HTML reference](/discover/tools/whitespace-clean)
