If you listen to some national news networks it would be easy to believe that you can't go outside anywhere in Illinois without having to dodge gunfire or someone randomly punching you in the face, but then there's reality.

READ MORE: World's Largest Bounce House Makes an Illinois, Wisconsin Visit

Of course, there are areas around the state dealing with senseless violence and other problems. Still, according to a ranking by GoBankingRates, we have several cities that are some of the safest, and most affordable in the country.

Texas Has 11 Cities on List of Safest and Most Affordable

Using metrics like costs of living and crime rate in each city, the ranking of the Top 25 cities in the U.S. included 11 from Texas.

Rockford's New Country Q98.5  logo
Get our free mobile app

Of all the cities ranked, the lowest cost of living was Brownsville, Texas at $2,940 estimated monthly costs, while Mesa, Arizona had the highest rate of violent crime.

Midwest Cities Well Represented in the Top 25

We've got about a half dozen towns from the Midwestern states that made the ranking of Most Affordable and Safest.

Dearborn, Michigan is the 20th Most Affordable and Safest

Fort Wayne, Indiana is the 19th Most Affordable and Safest

Joliet, Illinois is the 17th Most Affordable and Safest

Sterling Heights, Michigan is the 14th Most Affordable and Safest

Rochester, Minnesota is the 5th Most Affordable and Safest

Elgin, Illinois is the Most Affordable and Safest City in America

Elgin topped the list with an average median income of over $85,000 and a total monthly cost of living right at $4,000.

A few honorable mentions in the Top 50 of the Most Affordable and Safest Cities in Illinois include Warren, Michigan ranked 37th, Madison, Wisconsin at 45th, and Cedar Rapids, Iowa ranked 47th.

CLICK HERE to see the complete list of the Most Affordable and Safest Cities in the U.S.

LOOK: This is where homes are selling the fastest right now

Stacker compiled a list of the metros where houses are selling the fastest, according to data from Redfin.

Gallery Credit: Stacker

LOOK: Here's where people in every state are moving to most

Stacker analyzed the Census Bureau's 2019 American Community Survey data to determine the three most popular destinations for people moving out of each state.

Gallery Credit: Amanda Silvestri

More From Rockford's New Country Q98.5