Online news blogs and websites are becoming influential to any society as they accumulate the world in one place. Aside from that, online news blogs and websites have efficient strategies in grabbing readers’ attention by the headlines, that being so to recognize the sentiment orientation or polarity of the news headlines for avoiding misinterpretation against any fact. In this study, we have examined 3383 news headlines created by five different global newspapers. In the interest of distinguishing the sentiment polarity (or sentiment orientation) of news headlines, we have trained our model by seven machine learning and two deep learning algorithms. Finally, their performance was compared. Among them, Bernoulli naïve Bayes and Convolutional Neural Network (CNN) achieved higher accuracy than other machine learning and deep learning algorithms, respectively. Such a study will help the audience in determining their impression against or for any leader or governance; and will provide assistance to recognize the most indifferent newspaper or news blogs.