Documentation

txt Text Value

Prefer Base64 Variant

imgix recommends using the Base64 variant version of this parameter to make encoding values easier.

The text value to set on the image. This value must be supplied if text is to be rendered. All other text parameters are ignored if this value is not set. imgix has full support for UTF-8 characters which means appropriate rendering for non-Latin character sets and emoji.

txt=Hello World!
Clouds
txt=HELLO WORLD!&txtsize=62&txtclr=ff2e4357&txtalign=middle,center&txtfont=Futura Condensed Medium
Clouds
txt=你好&txtsize=62&txtclr=ff2e4357&txtalign=middle,center&txtfont=Futura Condensed Medium
Clouds
txt=😑💩❤️️&txtsize=62&txtclr=ff2e4357&txtalign=middle,center&txtfont=Futura Condensed Medium
Clouds

Using Base64 encoding

Using Base64 encoding can help make sure you do not run into issues encoding text into URLs.

txt64=SGVsbG8gV29ybGQh
Clouds
txt64=SEVMTE8gV09STEQh&txtsize=62&txtclr=ff2e4357&txtalign=middle,center&txtfont64=RnV0dXJhIENvbmRlbnNlZCBNZWRpdW0
Clouds
txt64=5L2g5aW9&txtsize=62&txtclr=ff2e4357&txtalign=middle,center&txtfont64=RnV0dXJhIENvbmRlbnNlZCBNZWRpdW0
Clouds
txt64=8J-YkfCfkqninaTvuI_vuI8&txtsize=62&txtclr=ff2e4357&txtalign=middle,center&txtfont64=RnV0dXJhIENvbmRlbnNlZCBNZWRpdW0
Clouds