Rinse the tofu in water and remove excess moisture.
Cut the tofu into small cubes.
Finely chop the carrot, onion, and green onion.
Heat oil in a pan and sauté the vegetables.
Add the tofu to the pan and mash it while stir-frying together.
Add rice and mix everything thoroughly while stir-frying.
Season with soy sauce, salt, and pepper.
Serve the finished tofu rice in a bowl.