<h1>
<?php echo single_cat_title( '', false );?>
</h1>
The result will be just Category name
Default is: Category: Category name
If you want to change “Category:” use this:
<h1>
<?php echo single_cat_title( 'Some text: ', false );?>
</h1>
Thanks, Hammad Wali for sharing this useful code!