Linux Hint shows you how Ansible filters work.
How Do Ansible Filters Work?
The two sets of filters available are the jinja2 template and the custom-built made by users. All filters in Ansible work based on the jinja2 template.
How Do Ansible Filters Work?