Hierarchical HZSM-5 membranes were prepared on the inner wall of stainless steel tubes, using amphiphilic organosilane (TPOAC) and mesitylene (TMB) as a meso-porogen and a swelling agent, respectively. The mesoporosity of the HZSM-5 membranes were tailored via formulating the TPOAC/Tetraethylorthosilicate (TPOAC/TEOS) ratio and TMB/TPOAC ratio, in synthesis gel, and the prepared membranes were systematically characterized by X-ray diffraction (XRD), scanning electron microscope (SEM), N2 adsorption–desorption, N2 permeation, inductively coupled plasma (ICP), in situ fourier transform infrared (FT-IR), ammonia temperature-programmed desorption (NH3-TPD), etc. It was found that the increase of the TPOAC/TEOS ratio promoted a specific surface area and diffusivity of the HZSM-5 membranes, as well as decreased acidity; the increase of the TMB/TPOAC ratios led to an enlargement of the mesopore size and diffusivity of the membranes, but with constant acid properties. The catalytic performance of the prepared HZSM-5 membranes was tested using the catalytic cracking of supercritical n-dodecane (500 °C, 4 MPa) as a model reaction. The hierarchical membrane with the TPOAC/TEOS ratio of 0.1 and TMB/TPOAC ratio of 2, exhibited superior catalytic performances with the highest activity of up to 13% improvement and the lowest deactivation rate (nearly a half), compared with the microporous HZSM-5 membrane, due to the benefits of suitable acidity, together with enhanced diffusivity of n-dodecane and cracking products