{"title":"replace - Liquid Filter Reference","slug":"replace-filter-reference","url":"https://support.storeconnect.com/articles/replace-filter-reference","url_markdown":"https://support.storeconnect.com/articles/replace-filter-reference.md","subtitle":null,"summary":"Swaps every occurrence of a substring with a replacement string. Use `replace` for bulk text substitutions across an entire string.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, replace, text, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nReplaces every occurrence of the first argument in a string with the second argument.\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | string |\n| **Category** | text |\n\n## Examples\n\n\n```liquid\n\n{{ \"Baby shark do do do do\" | replace: \"do\", \"oi\" }}\n```\n\n\n**Output:** `Baby shark oi oi oi oi`"}