> For the complete documentation index, see [llms.txt](https://help.fulfilleo.solvenium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.fulfilleo.solvenium.com/custom-liquid-filters.md).

# Custom Liquid filters

Filters are simple methods that modify the output of numbers, strings, variables, and objects. They are placed within an output tag `{{ }}` and are denoted by a pipe character `|`. In addition to the standard filters, Stockeo also provides custom filters.

#### **base64\_encode**

Encodes the provided input into [Base64 format](https://developer.mozilla.org/en-US/docs/Glossary/Base64). If the input is binary data, it is directly converted into a Base64 string; otherwise, the input is first converted into a UTF-8 byte representation before encoding.

{% tabs %}
{% tab title="Input" %}

```liquid
{{ "Hello World!" | base64_encode }}
```

{% endtab %}

{% tab title="Output" %}

```
SGVsbG8gV29ybGQh
```

{% endtab %}
{% endtabs %}

#### **base64\_decode**

Decodes a Base64-encoded string back into its original form. The decoded binary data is then interpreted as UTF-8 text and returned as a readable string.

{% tabs %}
{% tab title="Input" %}

```liquid
{{ "SGVsbG8gV29ybGQh" | base64_decode }}
```

{% endtab %}

{% tab title="Output" %}

```
Hello World!
```

{% endtab %}
{% endtabs %}

#### **ensure\_array**

Ensures that the value is always returned as an array. If the input value is `null` or `undefined`, an empty array is returned. If the value is already an array, it is returned unchanged. Otherwise, the value is wrapped in a single-element array.

#### gzip

Compresses the provided input using the GZIP compression algorithm with a high compression level. It outputs the result as compressed binary data, which can optionally be encoded in Base64 using the [base64\_encode](#base64_encode) custom Liquid filter.

#### json

Converts a string, or object, into JSON format.

#### json\_parse, parse\_json

Allows parsing string in a format compliant with JSON file requirements into an object. It enables access to individual fields within the object using dot notation.

<figure><img src="https://2609323150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F97qHA4IuHSHLxA8BhsWe%2Fuploads%2FkL72vH2I825okpVivgDK%2Fcsv-tracking-data-file.png?alt=media&amp;token=5331e018-2018-4b94-bb52-c77227fb3710" alt="Example CSV file containing carrier, tracking number, and tracking URL fields"><figcaption><p>Example tracking data CSV file</p></figcaption></figure>

<figure><img src="https://2609323150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F97qHA4IuHSHLxA8BhsWe%2Fuploads%2FOz6G6eLYqUUhtb2jTuZE%2Fjson_parse-liquid-filter-fulfilleo.png?alt=media&amp;token=dccbd7b0-7871-4c97-9fc3-3c2b857f7600" alt="Example of using the json_parse Liquid filter to parse JSON data in Fulfilleo"><figcaption><p>Using the <code>json_parse</code> Liquid filter</p></figcaption></figure>

#### **moment**

Returns a current or specified time converted to a desired time zone.

The filter has two parameters: a date format and a [time zone identifier](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).

{% tabs %}
{% tab title="Input" %}

```liquid
tracking_{{ "now" | moment: "YYYY-MM-DD", "America/Chicago" }}.csv
```

{% endtab %}

{% tab title="Output" %}

```
tracking_2026-06-02.csv
```

{% endtab %}
{% endtabs %}

| format | description                                            | example value |
| ------ | ------------------------------------------------------ | ------------- |
| DD     | Two-digit day of the month (with leading zeros)        | `01` to `31`  |
| MM     | Two-digit representation of the month                  | `01` to `12`  |
| YY     | Two-digit representation of the year                   | `26`          |
| YYYY   | Four-digit representation for the year                 | `2026`        |
| HH     | Two-digit representation of the hour in 24-hour format | `00` to `23`  |
| hh     | Two-digit representation of the hour in 12-hour format | `01` to `12`  |
| A      | Upper-case 'AM' or 'PM' based on the given time        | `AM` or `PM`  |
| a      | Lower-case 'am' or 'pm' based on the given time        | `am` or `pm`  |
| mm     | Two-digit representation of the minute                 | `00` to `59`  |
| ss     | Two-digit representation of the second                 | `00` to `59`  |

This filter can be used, for example, in the **File Path** field of an FTP channel to match files whose names contain date or time information, allowing the automation to process only tracking data files generated on the current day or during the current hour.

#### strip\_all

Strips tabs, spaces, and newlines (all whitespace) from the entire string.
