diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport
index 5c0a78adf..ce5956c1e 100755
--- a/htmlreport/cppcheck-htmlreport
+++ b/htmlreport/cppcheck-htmlreport
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import unicode_literals
diff --git a/htmlreport/setup.py b/htmlreport/setup.py
index e741ece55..ac790fbeb 100755
--- a/htmlreport/setup.py
+++ b/htmlreport/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from setuptools import setup
diff --git a/htmlreport/test_htmlreport.py b/htmlreport/test_htmlreport.py
index ffca77f29..4fd6cf6c2 100755
--- a/htmlreport/test_htmlreport.py
+++ b/htmlreport/test_htmlreport.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
"""Test cppcheck-htmlreport."""
import os
diff --git a/test/synthetic/report.py b/test/synthetic/report.py
index e4d972102..17f58239f 100755
--- a/test/synthetic/report.py
+++ b/test/synthetic/report.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import os
import re
diff --git a/tools/ci.py b/tools/ci.py
index 6d2b8cfc4..27d0f8718 100644
--- a/tools/ci.py
+++ b/tools/ci.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# continuous integration
# build daily reports (doxygen,coverage,etc)
diff --git a/tools/extracttests.py b/tools/extracttests.py
index 277131465..42a80d6c0 100755
--- a/tools/extracttests.py
+++ b/tools/extracttests.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Cppcheck - A tool for static C/C++ code analysis
# Copyright (C) 2007-2021 Cppcheck team.
diff --git a/tools/listErrorsWithoutCWE.py b/tools/listErrorsWithoutCWE.py
index 1a4c784c4..0a78ff5bd 100755
--- a/tools/listErrorsWithoutCWE.py
+++ b/tools/listErrorsWithoutCWE.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
from __future__ import print_function
import argparse
import xml.etree.ElementTree as ET
diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py
index b195f3816..254436696 100755
--- a/tools/matchcompiler.py
+++ b/tools/matchcompiler.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Cppcheck - A tool for static C/C++ code analysis
# Copyright (C) 2007-2021 Cppcheck team.
diff --git a/tools/parse-glibc.py b/tools/parse-glibc.py
index cb79edec8..6120e68ca 100644
--- a/tools/parse-glibc.py
+++ b/tools/parse-glibc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import glob
import os
diff --git a/tools/reduce.py b/tools/reduce.py
index ae4507e61..595aaff18 100755
--- a/tools/reduce.py
+++ b/tools/reduce.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
import subprocess
import sys
import time
diff --git a/tools/test_matchcompiler.py b/tools/test_matchcompiler.py
index 82327fb86..104601df7 100755
--- a/tools/test_matchcompiler.py
+++ b/tools/test_matchcompiler.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
#
# Cppcheck - A tool for static C/C++ code analysis
# Copyright (C) 2007-2021 Cppcheck team.