Most Portuguese learners who already know Spanish get tudo and todo wrong.
When to use tudo?
Tudo simply means "all" or "everything" and it doesn't change regardless of the gender or number. It normally doesn't require another word after it.
Tudo can be understood as "all" or "everything" for general things.
Você não pode ter tudo You can't have it all
Tudo ou nada? All or nothing?
When to use todo?
Todo means "all" or "every" and it normally requires a word after it.
Todo can be understood as "all" or "every" for specific things.
Todo o dinheiro está aqui All the money is here
Todo mundo veio a minha festa Everyone came to my party