Filter Reference
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Use filters when you need to transform a value with the pipe syntax: {{ value | filterName(...) }}.
Filter categories
- JSON and structured data —
toJson,toIon,jq - Numbers and collections —
abs,number,first,last,sort,chunk,distinct, and more - Strings —
lower,upper,replace,slugify,base64encode, regex filters, and more - Dates —
date,dateAdd,timestamp,timestampMilli, and precision variants - YAML —
yaml,indent,nindent
Choosing the right filter quickly
| If you need to… | Use |
|---|---|
| Parse or transform JSON payloads | toJson, jq, first |
| Provide a fallback string or value | default |
| Format a date | date |
| Offset a date | dateAdd |
| Split or join text | split, join |
| Normalize casing | lower, upper, title, capitalize |
| Convert a value to a string | string |
| Sort a collection | sort, rsort |
| Count items in a collection | length |
| Get unique values | distinct |
| Encode or decode Base64 | base64encode, base64decode |
| Hash a string | sha1, sha512, md5 |
| Convert to a number | number |
| Render YAML in a templated task | yaml, indent, nindent |
JSON Filters
Reference for Kestra's JSON and structured data filters — toJson, toIon, and jq — for serializing, reshaping, and extracting fields from task outputs and API responses.
Collections Filters
Reference for Kestra's number and collection filters — abs, number, first, last, sort, chunk, distinct, slice, merge, flatten, keys, values, and more.
String Filters
Reference for Kestra's string filters — casing, trimming, encoding, hashing, regex, and substring extraction. Use them for display formatting, filename shaping, and API-compatible encodings.
Date Filters
Reference for Kestra's date and time filters — date, dateAdd, timestamp, timestampMilli, timestampMicro, and timestampNano — for formatting dates and converting to Unix timestamps.
YAML Filters
Reference for Kestra's YAML filters — yaml, indent, and nindent — for parsing and formatting YAML in templated tasks, Kubernetes manifests, and config-management patterns.
Was this page helpful?