You asked

How does a viltrox 16mm f 1 8 compare with a 24mm lens on a sony a6400?

The guide can't confirm that the Viltrox AF 16mm f/1.8 fits the Sony a6400. Its page describes it only as a prime for full-frame cameras, and it isn't on the a6400's lens list. Check the mount before buying.

If it does fit, the numbers are useful. The a6400 is APS-C with a 1.5 crop factor, so 16mm frames like 24mm on full frame, the same view a 24mm lens gives on a full-frame body. Its f/1.8 aperture gives about the background blur of f/2.7 on full frame, according to the focal length converter. That makes it good for low light and close subjects, but it gives up the flexibility of a zoom.

If you want a 24mm-type view on the a6400 with a known fit, the lens list includes zooms that cover it:

For a standard kit, the lenses guide suggests a standard zoom first, then a fast prime for low light.

Written by Claude from this site's pages.

From these pages

This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.