This research investigated the properties and potential environmental hazards associated with biochars derived from rice husk (RH) and sugar beet pulp (SBP), both of which are rich in heavy metals (HMs). The results indicated that the concentration of various HM fractions is significantly affected by the type of feedstock and the pyrolysis temperature. Specifically, the total concentrations of HMs in biochars produced at 600°C were found to be 10-140% higher than those in the original biomasses, a phenomenon attributed to the precipitation of HMs. Cd was a notable exception, exhibiting a reduction of 3-7% in the resultant biochars when compared to biomass, likely attributable to its volatilization. The results also revealed that the F1 + F2 fraction of HMs were largely transformed into F3 + F4 fraction during combustion, indicating that pyrolysis may reduce the ecotoxicity of HMs present in contaminated biomass. However, the process did not effectively diminish the F1 and F2 fractions of Cr and Cd. Elevated pyrolysis temperature significantly enhanced the reduction of HMs phytoavailability. Specifically, the phytoavailability of HMs in biochars produced at 600°C exhibited a decrease ranging from 10 to 92% when compared to the original biomass. Conversely, an unexpected rise in the phytoavailable fractions of Cr and Cd was noted in both RH and SBP biochars as the pyrolytic temperature increased, which correspondingly raised the potential ecological risk index (PERI). All materials analyzed exhibited a very high risk level, with PERI values exceeding 800, primarily due to the significant toxicity of Cd. Excluding Cd from consideration, the biomasses and their resultant biochars displayed PERI values ranging from 7 to 13. It is important to acknowledge that pyrolysis may not effectively diminish the environmental toxicity associated with HMs present in contaminated biomass, thereby limiting its safe application.