The largest-denomination legal bank note ever released was the Hungarian 100 quintillion (1 followed by 18 zeroes) pengo note.
This was because of hyperinflation that struck the country in 1945-46.