In what country? the USA? I've heard from several people that establishing a formal non-profit organization is a lot of complicated paperwork and setup.
It might be easier to
simply donate the money to a charity
possibly donate the website to a charity, if they can handle that
sell the website yourself
shut the website down