In continuum mechanics, one regularly encounters higher-order tensors that require tensorial bases for theoretical or numerical calculations. By using results from [Formula: see text] representation theory, we present a method to derive tensorial harmonic bases which unifies existing approaches in one framework. Applying this convention to symmetric second-order tensors results in a second-order harmonic basis which, for example, simplifies the depiction and numerical handling of stiffness tensors for most common material symmetries and reduces the computational effort involved in implementations of incompressible elastoviscoplastic material laws. The same convention can be applied to texture analysis to yield tensorial texture coefficients for both polycrystals and fiber-reinforced composites. Rotations of higher-order tensors are particularly efficient in harmonic bases as both material and index symmetries can be exploited. While special attention is given here to the examples of small-strain material laws and texture analysis, the framework is entirely general and can be used to simplify calculations in other physical contexts involving tensors of arbitrary order and symmetry. A Python implementation of the harmonic basis convention defined in this work is available as a Supplementary Material.