Text Content

txt

Sets the text string to render as an overlay on the video.

txt accepts a URL-encoded string. The text is rendered using the font, size, color, and position specified by accompanying txt-* parameters.

Use txt[N] indexing (e.g. txt[1], txt[2]) to add multiple independent text layers — the bare txt parameter is layer 0. Up to 20 layers total (indices 0–19).

txt accepts up to 2000 characters; longer strings are truncated. txt64 is decoded and truncated the same way.

https://assets.imgix.net/video.mp4?fm=mp4&txt=Hello%20World&txt-size=48&txt-color=FFFFFF

For the full list of text styling parameters, see the Text Overlays overview.

This parameter works identically to txt in the Rendering API. On video, it additionally supports video-txt-start, video-txt-end, and video-txt-transition for time-based animation.

Multi-line text

Embed a line break directly inside txt (URL-encoded as %0A) or txt64 (a literal newline in the string before base64-encoding) to render multiple lines within a single text layer:

https://assets.imgix.net/Croatia.mp4?fm=mp4&txt=Line%20One%0ALine%20Two&txt-size=36&txt-color=FFFFFF

The number of lines is determined entirely by how many line breaks the string contains — there’s no separate line-count parameter. txt-line is unrelated to line count; it sets the outline stroke width around the text.