There are three types of resistor color coding. They have different number of color bands and hence provide different information. This is illustrated by the next table. You can calculate the value of an unknown resistor by entering its color code in the fields below the table.
And finally here is the complete color codes table. The band number that contains the given value is shown in braces [ ] and the table is easy to use by itself.