Home > Shopify Development > Liquid url_encode: How to Convert URL into Safe Characters

Liquid url_encode: How to Convert URL into Safe Characters in Shopify

Sam Nguyen
Sam Updated: April 22, 2024

Share:

Drive 20-40% of your revenue with Avada
avada email marketing

Improving SEO is essential for boosting the visibility of your Shopify store, and creating friendly URLs is one effective way to do it. These clean, readable web addresses help attract visitors by clearly describing your content. To achieve this, it’s important to use safe characters such as letters, numbers, hyphens, and underscores, while avoiding unsafe ones like ? and #, which can break links and harm your store’s SEO performance.

In this guide, you’ll learn simple steps to convert URLs into safe characters. Even beginners can follow these steps to ensure their URLs are SEO-friendly, leading to better rankings and increased traffic for your Shopify store.

Liquid url_encode: How to Convert URL into Safe Characters in Shopify

Step 1: Input

Input

{{ "john@liquid.com" | url_encode }}

Step 2: Output

Output


Another example for change the unsafe characters to the safe character in URLs 

**Input**

Tetsuro+Takara ```

Output

Tetsuro+Takara

Conclusion

To wrap up, the process of converting URLs into safe characters using Liquid’s url_encode is essential for Shopify store owners aiming to enhance SEO and ensure URL integrity. By following the steps outlined in this guide, even beginners can easily implement URL-friendly characters. This practice not only helps maintain a seamless browsing experience but also drives more traffic to your Shopify store, ultimately boosting sales.

In addition, to have more knowledge about Liquid in Shopify, the online merchants can read these following blogs such as:


Sam Nguyen is the CEO and founder of Avada Commerce, an e-commerce solution provider headquartered in Singapore. He is an expert on the Shopify e-commerce platform for online stores and retail point-of-sale systems. Sam loves talking about e-commerce and he aims to help over a million online businesses grow and thrive.

Stay in the know

Get special offers on the latest news from AVADA.