---
title: UNZIP
url: https://www.tines.com/docs/formulas/functions/unzip/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/docs/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# UNZIP

*[View on tines.com](https://www.tines.com/docs/formulas/functions/unzip/)*

Extracts files from a ZIP archive.

**Categories:** Data Parsing/Conversion

## Syntax

```
UNZIP(zip_data, [password])
```

## Examples

### Example 1

Formula:

```
UNZIP(BASE64_DECODE(input.zip_data), 'optional_password')
```

Output:

```json
[
  {
    "filename": "test_filename",
    "content_type": "application/octet-stream",
    "guid": "2634c668-7066-47e5-ad01-ed77781d5daf",
    "md5": "ccc55aefbf92aa66f42b638802c5e7f6",
    "sha256": "623447b85d372251f3ffce2602e142b25ba40ee641821beabe6e14530d1cdd49",
    "sizeinbytes": 13,
    "base64encodedcontents": "dGVzdF9jb250ZW50cw==",
    "path": "test_filename"
  }
]
```

## Sample actions

```json
{
  "standardLibVersion": "14",
  "actionRuntimeVersion": "4",
  "agents": [
    {
      "disabled": false,
      "name": "UNZIP",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "unzip": "=UNZIP(BASE64_DECODE(my_action.base64encoded_file))"
        }
      },
      "position": {
        "x": 2820,
        "y": -2370
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "base64encoded_file": "UEsDBBQAAAAIAEE1Tlb6/ZIgEQAAABEAAAAEAAAAZmlsZQvJyCxWAKKS1IoShbTMnFQAUEsBAjQDFAAAAAgAQTVOVvr9kiARAAAAEQAAAAQAAAAAAAAAAQAAAKSBAAAAAGZpbGVQSwUGAAAAAAEAAQAyAAAAMwAAAAAA"
        }
      },
      "position": {
        "x": 2715,
        "y": -2490
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "base64encoded_file": "UEsDBBQAAAAIAMl4K1ZPTgbDEAAAAA4AAAAJAAAAZmlsZTEudHh0S8vMSY1Pzs8rSc0rKTYEAFBLAwQUAAAACADJgCtW9R8PWhAAAAAOAAAACQAAAGZpbGUyLnR4dEvLzEmNT87PK0nNKyk2AgBQSwECNAMUAAAACADJeCtWT04GwxAAAAAOAAAACQAAAAAAAAABAAAApIEAAAAAZmlsZTEudHh0UEsBAjQDFAAAAAgAyYArVvUfD1oQAAAADgAAAAkAAAAAAAAAAQAAAKSBNwAAAGZpbGUyLnR4dFBLBQYAAAAAAgACAG4AAABuAAAAAAA="
        }
      },
      "position": {
        "x": 2895,
        "y": -2490
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    },
    {
      "sourceIdentifier": 2,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}
```
