{"category":"encoding","endpoint":"https://setget.net/v1/tools/deflate","examples":[{"input":{"text":"na na na na na na na na na na na na na na na na Batman!"},"output":{"bytes_after":21,"bytes_before":55,"ratio":0.382,"text":"eJzLS1TIIwU5JZbkJuYpAgDl2hFl"}},{"input":{"format":"raw","text":"na na na na na na na na na na na na na na na na Batman!"},"output":{"bytes_after":15,"bytes_before":55,"ratio":0.273,"text":"y0tUyCMFOSWW5CbmKQIA"},"title":"A raw deflate stream"},{"input":{"action":"decompress","text":"eJzLS1TIIwU5JZbkJuYpAgDl2hFl"},"output":{"binary":false,"bytes":55,"encoding":"utf-8","format":"zlib","text":"na na na na na na na na na na na na na na na na Batman!"},"title":"The format is detected"}],"input_schema":{"additionalProperties":false,"properties":{"action":{"default":"compress","description":"Compress text, or decompress deflate data.","enum":["compress","decompress"],"type":"string"},"format":{"default":"zlib","description":"When compressing: \"zlib\" adds the two-byte header and checksum, \"raw\" is the bare deflate stream. Decompression detects the format itself.","enum":["zlib","raw"],"type":"string"},"level":{"default":6,"description":"Compression effort when compressing, from 1 (fastest) to 9 (smallest).","maximum":9,"minimum":1,"type":"integer"},"text":{"description":"The text to compress, or base64 zlib or deflate data to decompress.","examples":["na na na na na na na na na na na na na na na na Batman!"],"maxLength":1000000,"type":"string"}},"required":["text"],"type":"object"},"keywords":["deflate","inflate","zlib","zlib decompress","raw deflate","compress","decompress","zlib base64","pako","inflate base64"],"related":["gzip","base64","crc32"],"slug":"deflate","summary":"Compress text to a zlib or raw deflate stream as base64, or decompress one. The format is detected.","tier":"inline","title":"Deflate compress and decompress","url":"https://setget.net/tools/deflate"}
