1.
anything; everything
Refers to any thing without restriction; whatever one wants.
2.
I hear that; they say that
Used to introduce hearsay or reported information.
何でも combines 何 with the particle でも, giving "whatever it may be". It has two quite different uses.
ANYTHING / EVERYTHING (sense 1):
With a negative verb the meaning flips to "nothing", but Japanese uses 何も for that, not 何でも.
HEARSAY (sense 2):
Sentence-initial, and normally followed by らしい or そうだ at the end:
It marks the whole sentence as secondhand and slightly vague - the speaker is passing on what they heard without vouching for it. A comma after 何でも is usual in writing.
Watch out
何でも on its own does NOT mean "by all means" or "at any cost". That is the fixed expression 何が何でも, which needs the full four-element form: 何が何でも勝ちたい (I want to win no matter what), not ×何でも勝ちたい. どうしても is a close everyday equivalent.
Related words
Related Words
Compare:
何も (nothing)
Related:
何か (something)
Related:
誰でも (anyone)
Related:
いつでも (anytime)
Related:
どこでも (anywhere)
Related:
何でもない (it's nothing)
Related:
でも (the 〜でも this is built on)