The entropy generation minimization principle is used as the criterion to optimize the flow and heat transfer of solar collectors and heat exchangers that use molten salts NaCl–KCl–MgCl2 and KCl–MgCl2. The Gnielinski correlation for the Nusselt number versus Reynolds number, as well as the Moody friction factor given by Petukhov, was used for the calculation of the convective heat transfer coefficient and pressure loss due to friction in smooth tubes. For twisted-tap-inserted tube, equations of Nu and friction factor provided by Manglik and Bergles were used. The objective function, the entropy generation rate of the heat transfer system, was expressed as the function of Reynolds number, Prandtl number, heating flux, tube diameter, etc. As a result of the analysis, the optimum Reynolds number was determined and thereby to determine the optimum Nusselt number, convective heat transfer coefficient, friction factor, and tube diameter, which also allows the calculation of optimum flow velocity. The analysis was conducted in the fluid temperature range of 500–700 °C, which covers the operation temperature for supercritical CO2 power cycles in concentrated solar power (CSP) system. Optimized results from the smooth tube and twisted-tap-inserted tube are compared, which is important to the design of solar receivers for CSP systems.