A platform combines multiple tutorials, projects, documentations, questions and answers for developers
  • Home (current)
  • Documentations
  • About
  • Login
  1. Home
  2. Documentations
  3. Liquid
  4. url_encode

url_encode

Converts any URL-unsafe characters in a string into percent-encoded characters.

Input

{{ "[email protected]" | url_encode }}

Output

john%40liquid.com

Input

{{ "Tetsuro Takara" | url_encode }}

Output

Tetsuro+Takara

© 2005, 2006 Tobias Luetke
Licensed under the MIT License.
https://shopify.github.io/liquid/filters/url_encode/

Filters
abs
Tags
Comment
Control flow
Iteration
Raw
Variable
append
assign
at_least
at_most
capitalize
capture
case/when
ceil
compact
concat
cycle
cycle (parameters)
date
decrement
default
divided_by
downcase
elsif / else
escape
escape_once
first
floor
for
for (parameters)
if
increment
join
last
lstrip
map
minus
modulo
newline_to_br
plus
prepend
remove
remove_first
replace
replace_first
reverse
round
rstrip
size
slice
sort
sort_natural
split
strip
strip_html
strip_newlines
tablerow
tablerow (parameters)
times
truncate
truncatewords
uniq
unless
upcase
url_decode
url_encode
where
Basics
Introduction
Operators
Truthy and falsy
Types
Variations of Liquid
Whitespace control
Copyright ©2025 TypeError Powered By AnyPost, page cost 69ms.
Privacy Policy