
This question has a two-part answer, and giving only one part is how the internet ended up so confused. Here is both.
The mechanism is established. Retinal cells containing melanopsin detect blue wavelengths and signal to the brain's master circadian clock. Evening blue light suppresses melatonin and delays circadian timing.
Studies of amber or blue-blocking eyewear worn before bed have reported improvements in sleep onset latency, sleep quality and melatonin levels — across shift workers, people with insomnia, and adolescents.
Findings are not uniform, many studies are small, and effect sizes are moderate rather than dramatic. But the direction is consistent and the mechanism holds. This is the strongest claim available in the category.
A Cochrane systematic review of blue-light-filtering lenses found little to no evidence of benefit for reducing visual fatigue from computer use compared with standard lenses.
This is a well-conducted review of the available trials, not an outlying opinion, and other reviews have broadly agreed.
It is also entirely consistent with what causes digital eye strain: reduced blink rate, sustained near focus, poor ergonomics, dry air, and uncorrected refractive error. None of these are blue light problems.

Studies reporting sleep benefits generally used substantially tinted lenses — amber or red — not clear ones.
Clear lenses marketed as blue blocking typically filter a small proportion, concentrated in violet wavelengths that matter least for circadian signalling.
So a large share of people who conclude blue light glasses do not work were wearing lenses that never filtered enough to replicate the research conditions. That is a product-selection failure rather than a category failure.

What would make them effective for you
Wear them in the two to three hours before bed, not all day
Choose amber or red tint
Dim ambient lighting too — the glasses do not block light entering around the frame
Be consistent for two to three weeks, since circadian shifts are gradual
Pair with morning light exposure, which anchors the other end of the cycle

Where marketing overstates
'Eliminates eye strain' — the evidence does not support this
'Blocks 99% of blue light' with no wavelength range specified — technically possible while doing little for sleep
'Protects your retina from screen damage' — screen blue light intensity is a small fraction of daylight
Clear lenses sold on the same benefit claims as deeply tinted ones
None of this makes the category worthless. It means the claims to trust are narrower than the claims being made.

Effective for evening use with genuine tint, aimed at sleep. The mechanism is sound and the evidence is reasonable.
Not effective for daytime eye strain, where ergonomics, blinking and an up-to-date prescription do considerably more.
Buy for the first purpose. Fix the second with a desk setup and an eye test.
This article is for general information and is not medical advice.