---
layout: page
title: "Compress"
node_type: "lib.zlib.Compress"
namespace: "lib.zlib"
---

**Type:** `lib.zlib.Compress`

**Namespace:** `lib.zlib`

## Description

Compress binary data using the zlib algorithm.
    zlib, compress, deflate, binary

    Use cases:
    - Reduce size of binary data
    - Prepare payloads for transmission
    - Store data in compressed form

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|----------|
| data | `bytes` | Data to compress | `` |
| level | `int` | Compression level | `9` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `bytes` |  |

## Metadata

## Related Nodes

Browse other nodes in the [lib.zlib](../) namespace.

