To be clear, the VIN itself does not necessarily encode the trim level, so a VIN decoder may not be able identify the trim level. However, the manufacturer does have the extra data, which is what you see from Toyota's website.
Here is a discussion of what the various parts of the VIN mean...