The first two digits usually represent the year. The Code: Subtract 50 from the first two digits to get the year.
The reason a simple "Yamaha Decoder" website doesn't exist is that Yamaha reuses serial number blocks. A Pacifica made in 1995 might have the same serial length as an acoustic made in 2005, but the logic behind them is totally different. yamaha guitar serial number