Thumbnail Sprite & VTT Generator

Make the sprite images and WebVTT file that show preview thumbnails when viewers hover your player's progress bar. Your video stays on your computer.

How to add preview thumbnails to your player

  1. Choose your video

    Pick the video file on your computer. The generator takes a picture every few seconds and lays them out in sprite images.

  2. Check the previews

    Hover the progress bar of the player to see them. Change the interval, size or format and the result updates.

  3. Add them to your player

    Download the ZIP, put the files on your server and point your player at the VTT file. The code is ready to copy.

How preview thumbnails work

Players don’t take pictures of your video while viewers hover: they show small images you made in advance. Two files do the job.

  • Sprite images

    Many small pictures of the video, side by side in one image, so the browser loads one file instead of hundreds.

  • A WebVTT file

    The same format as subtitles. Each cue gives a time range and, instead of text, the image and the rectangle (#xywh= left, top, width, height) to show for it.

thumbnails.vtt
WEBVTT

00:00:00.000 --> 00:00:02.000
spring-thumbs.jpg#xywh=0,0,160,66

00:00:02.000 --> 00:00:04.000
spring-thumbs.jpg#xywh=160,0,160,66

Fluid Player, Video.js, Plyr, JW Player, Flowplayer and most other players read this format.

Which settings to use

Interval
Auto picks one thumbnail every 1 s for clips under a minute, 2 s up to 10 minutes, 5 s up to 30 minutes, 10 s up to 2 hours and 20 s beyond. Shorter intervals feel smoother but make more and bigger files.
Width
160 px suits most players. The player shows thumbnails at this size, so pick 120 px for small players and 240 px for wide ones. The height follows your video’s shape.
Per image
10 × 10 puts 100 thumbnails in each image. Long videos get several images, so no file grows too large for phones.
Format
JPG works everywhere. WebP is a little smaller at the same quality (about 15 % on our demo video) and works in all current browsers.
Quality
70 % is a good default: thumbnails appear small, so compression flaws are hard to see. Higher quality makes bigger files for viewers to download.
Image address
Leave it empty if the images sit next to the VTT file. Type their folder (such as /thumbnails/) if they live somewhere else, such as a CDN.

Previews not showing?

  • Open the VTT file’s address in your browser: it should show the file, not a 404 page.
  • In Fluid Player, add spriteRelativePath: true when the images sit next to the VTT file in another folder. Without it, image addresses are read from the page’s address.
  • A VTT file on another domain needs a CORS header (Access-Control-Allow-Origin): players download it with JavaScript.
  • Keep file names free of spaces and brackets. The generator’s names are safe.
  • If you edit the VTT by hand, keep each cue’s time range matching its thumbnail, or previews drift further off toward the end.

Questions

Is my video uploaded anywhere?

No. The generator plays your video in your browser, takes the pictures there and builds the files in memory. Nothing is sent to us or anyone else: you can check it in the network tab of your browser’s developer tools.

Which video files work?

Any video your browser can play: MP4 (H.264) and WebM work everywhere, and MOV files with H.264 usually do. ProRes, AVI and some HEVC or MKV files don’t open in browsers. Convert them to MP4 first, or make the thumbnails from the MP4 you publish.

How long does it take?

The generator jumps to each moment and copies the picture, so the time grows with the number of thumbnails. A short clip takes seconds; a long film with a short interval can take a few minutes. Keep the tab open while it works.

Can I use the thumbnails with an HLS or DASH stream?

Yes. Make them from the video file you encoded the stream from: the times are the same, so the VTT file works with the stream too. Point the player’s thumbnail setting at it as usual.

Why several images instead of one?

Very large images are slow to decode and some phones refuse them. With several images, each stays small, and Fluid Player only downloads an image when the viewer hovers over its part of the video.

Does it work with players other than Fluid Player?

Yes. The VTT file with #xywh= rectangles is the common format for preview thumbnails. The Code tab has ready-made settings for Fluid Player, Video.js 10 (no plugin needed), Plyr and JW Player.

Can I make them with ffmpeg instead?

Yes, for the images: ffmpeg -i video.mp4 -vf "fps=1/10,scale=160:-2,tile=10x10" -q:v 5 thumbs-%d.jpg takes one picture every 10 seconds and tiles them 10 × 10. You then need a script to write the VTT file, with the same interval. The generator does both and shows the result.

How do I turn on preview thumbnails in Fluid Player?

Add timelinePreview to layoutControls, with type: 'VTT', the VTT file’s address in file and spriteRelativePath: true. The Code tab has it ready to copy. See Previews in the Fluid Player documentation (opens in a new tab).

More free tools

  • SRT to VTT Converter

    Convert SRT subtitles to WebVTT for HTML5 video. Fixes broken accents, checks for errors and previews the result in Fluid Player.

  • VTT to SRT Converter

    Convert WebVTT subtitles to SRT for YouTube, video editors and media players. Keeps positions, checks for errors and previews the result.

  • HLS & DASH Stream Tester

    Play an .m3u8 or .mpd stream, check its quality levels and codecs, and find out why it doesn't play, CORS errors included.

  • VAST Tag Tester & Validator

    Paste a VAST tag or its XML: follow every wrapper, find what's wrong in plain words and play the ad in Fluid Player.

  • Player Builder

    Set up Fluid Player visually, with video ads, subtitles and your colors, and copy ready-to-use code.