--- title: 'Liquid filters: format_address' description: >- Generates an HTML address display, with each address component ordered according to the address's locale. api_name: liquid source_url: html: 'https://shopify.dev/docs/api/liquid/filters/format_address' md: 'https://shopify.dev/docs/api/liquid/filters/format_address.md' --- # format\_​address ```oobleck address | format_address ``` returns [string](https://shopify.dev/docs/api/liquid/basics#string) Generates an HTML address display, with each address component ordered according to the address's locale. ##### Code ```liquid {{ shop.address | format_address }} ``` ##### Data ```json { "shop": { "address": {} } } ``` ##### Output ```html

Polina's Potions, LLC
150 Elgin Street
8th floor
Ottawa ON K2P 1L4
Canada

``` ## Rendered output ##### Code ```liquid {{ customer.default_address | format_address }} ``` ##### Data ```json { "customer": { "default_address": {} } } ``` ##### Output ```html

Cornelius Potionmaker
12 Phoenix Feather Alley
1
Calgary AB T1X 0L4
Canada

``` ## Rendered output