Depends what you mean by safe.
If you mean, no loss in nominal value, tbills, CDs, mmf, savings account, coffee can of cash buried in backyard all work.
If you mean maintain your current purchasing power/standard of living, doing any of the above would not be totally “safe”, as inflation will...