diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..11004db --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +tableExport.jquery.plugin.iml \ No newline at end of file diff --git a/tableExport.js b/tableExport.js index 71d2978..bddf203 100644 --- a/tableExport.js +++ b/tableExport.js @@ -1,54 +1,54 @@ /*The MIT License (MIT) -Original work Copyright (c) 2014 https://github.com/kayalshri/ -Modified work Copyright (c) 2015 https://github.com/hhurz/ - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE.*/ - -(function($){ + Original work Copyright (c) 2014 https://github.com/kayalshri/ + Modified work Copyright (c) 2015 https://github.com/hhurz/ + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE.*/ + +(function ($) { $.fn.extend({ - tableExport: function(options) { + tableExport: function (options) { var defaults = { csvSeparator: ',', csvEnclosure: '"', consoleLog: false, displayTableName: false, escape: false, - excelstyles: [ 'border-bottom', 'border-top', 'border-left', 'border-right' ], + excelstyles: ['border-bottom', 'border-top', 'border-left', 'border-right'], fileName: 'tableExport', htmlContent: false, ignoreColumn: [], - jspdf: { orientation: 'p', - unit:'pt', - format:'a4', - margins: { left: 20, right: 10, top: 10, bottom: 10 }, - autotable: { padding: 2, - lineHeight: 12, - fontSize: 8, - tableExport: { onAfterAutotable: null, - onBeforeAutotable: null, - onTable: null - } - } - }, + jspdf: {orientation: 'p', + unit: 'pt', + format: 'a4', + margins: {left: 20, right: 10, top: 10, bottom: 10}, + autotable: {padding: 2, + lineHeight: 12, + fontSize: 8, + tableExport: {onAfterAutotable: null, + onBeforeAutotable: null, + onTable: null + } + } + }, onCellData: null, - outputMode: 'file', // file|string|base64 + outputMode: 'file', // file|string|base64 tbodySelector: 'tr', theadSelector: 'tr', tableName: 'myTableName', @@ -62,191 +62,191 @@ THE SOFTWARE.*/ $.extend(true, defaults, options); - if(defaults.type == 'csv' || defaults.type == 'txt'){ + if (defaults.type == 'csv' || defaults.type == 'txt') { // Header - var tdData =""; + var tdData = ""; var rowIndex = 0; - $(el).find('thead').first().find(defaults.theadSelector).each(function() { + $(el).find('thead').first().find(defaults.theadSelector).each(function () { tdData += "\n"; ForEachVisibleCell(this, 'th,td', rowIndex, - function(cell, row, col) { - tdData += csvString(cell, row, col) + defaults.csvSeparator; - }); + function (cell, row, col) { + tdData += csvString(cell, row, col) + defaults.csvSeparator; + }); rowIndex++; tdData = $.trim(tdData); - tdData = $.trim(tdData).substring(0, tdData.length -1); + tdData = $.trim(tdData).substring(0, tdData.length - 1); }); // Row vs Column - $(el).find('tbody').first().find(defaults.tbodySelector).each(function() { + $(el).find('tbody').first().find(defaults.tbodySelector).each(function () { trData = ""; ForEachVisibleCell(this, 'td', rowIndex, - function(cell, row, col) { - trData += csvString(cell, row, col) + defaults.csvSeparator; - }); + function (cell, row, col) { + trData += csvString(cell, row, col) + defaults.csvSeparator; + }); if (trData.length > defaults.csvSeparator.length) tdData += "\n" + trData; rowIndex++; //tdData = $.trim(tdData); - tdData = $.trim(tdData).substring(0, tdData.length -1); + tdData = $.trim(tdData).substring(0, tdData.length - 1); }); tdData += "\n"; //output - if(defaults.consoleLog === true) + if (defaults.consoleLog === true) console.log(tdData); - if(defaults.outputMode == 'string') + if (defaults.outputMode === 'string') return tdData; - if(defaults.outputMode == 'base64') + if (defaults.outputMode === 'base64') return base64encode(tdData); try { - var blob = new Blob([(defaults.type == 'csv' ? '\ufeff' : '') + tdData], {type: "text/"+(defaults.type == 'csv' ? 'csv' : 'plain')+";charset=utf-8"}); - saveAs (blob, defaults.fileName + '.' + defaults.type); + var blob = new Blob([(defaults.type == 'csv' ? '\ufeff' : '') + tdData], {type: "text/" + (defaults.type == 'csv' ? 'csv' : 'plain') + ";charset=utf-8"}); + saveAs(blob, defaults.fileName + '.' + defaults.type); } catch (e) { downloadFile(defaults.fileName + '.' + defaults.type, - 'data:text/'+(defaults.type == 'csv' ? 'csv' : 'plain')+';charset=utf-8,' + (defaults.type == 'csv' ? '\ufeff' : '') + - encodeURIComponent(tdData)); + 'data:text/' + (defaults.type == 'csv' ? 'csv' : 'plain') + ';charset=utf-8,' + (defaults.type == 'csv' ? '\ufeff' : '') + + encodeURIComponent(tdData)); } - }else if(defaults.type == 'sql'){ + } else if (defaults.type == 'sql') { // Header var rowIndex = 0; - var tdData ="INSERT INTO `"+defaults.tableName+"` ("; - $(el).find('thead').first().find(defaults.theadSelector).each(function() { + var tdData = "INSERT INTO `" + defaults.tableName + "` ("; + $(el).find('thead').first().find(defaults.theadSelector).each(function () { ForEachVisibleCell(this, 'th,td', rowIndex, - function(cell, row, col) { - tdData += "'" + parseString(cell, row, col) + "'," ; - }); + function (cell, row, col) { + tdData += "'" + parseString(cell, row, col) + "',"; + }); rowIndex++; tdData = $.trim(tdData); - tdData = $.trim(tdData).substring(0, tdData.length -1); + tdData = $.trim(tdData).substring(0, tdData.length - 1); }); tdData += ") VALUES "; // Row vs Column - $(el).find('tbody').first().find(defaults.tbodySelector).each(function() { + $(el).find('tbody').first().find(defaults.tbodySelector).each(function () { trData = ""; ForEachVisibleCell(this, 'td', rowIndex, - function(cell, row, col) { - trData += "'" + parseString(cell, row, col) + "'," ; - }); - if (trData.length > 3){ + function (cell, row, col) { + trData += "'" + parseString(cell, row, col) + "',"; + }); + if (trData.length > 3) { tdData += "(" + trData; - tdData = $.trim(tdData).substring(0, tdData.length -1); + tdData = $.trim(tdData).substring(0, tdData.length - 1); tdData += "),"; } rowIndex++; }); - tdData = $.trim(tdData).substring(0, tdData.length -1); + tdData = $.trim(tdData).substring(0, tdData.length - 1); tdData += ";"; //output - if(defaults.consoleLog === true) + if (defaults.consoleLog === true) console.log(tdData); - if(defaults.outputMode == 'string') + if (defaults.outputMode == 'string') return tdData; - if(defaults.outputMode == 'base64') + if (defaults.outputMode == 'base64') return base64encode(tdData); try { var blob = new Blob([tdData], {type: "text/plain;charset=utf-8"}); - saveAs (blob, defaults.fileName + '.sql'); + saveAs(blob, defaults.fileName + '.sql'); } catch (e) { - downloadFile(defaults.fileName+'.sql', 'data:application/sql;charset=utf-8,' + encodeURIComponent(tdData)); + downloadFile(defaults.fileName + '.sql', 'data:application/sql;charset=utf-8,' + encodeURIComponent(tdData)); } - }else if(defaults.type == 'json'){ + } else if (defaults.type == 'json') { var jsonHeaderArray = []; - $(el).find('thead').first().find(defaults.theadSelector).each(function() { + $(el).find('thead').first().find(defaults.theadSelector).each(function () { var jsonArrayTd = []; ForEachVisibleCell(this, 'th,td', rowIndex, - function(cell, row, col) { - jsonArrayTd.push(parseString(cell, row, col)); - }); + function (cell, row, col) { + jsonArrayTd.push(parseString(cell, row, col)); + }); jsonHeaderArray.push(jsonArrayTd); }); var jsonArray = []; - $(el).find('tbody').first().find(defaults.tbodySelector).each(function() { + $(el).find('tbody').first().find(defaults.tbodySelector).each(function () { var jsonArrayTd = []; ForEachVisibleCell(this, 'td', rowIndex, - function(cell, row, col) { - jsonArrayTd.push(parseString(cell, row, col)); - }); + function (cell, row, col) { + jsonArrayTd.push(parseString(cell, row, col)); + }); - if (jsonArrayTd.length > 0 && (jsonArrayTd.length != 1 || jsonArrayTd[0] != "") ) + if (jsonArrayTd.length > 0 && (jsonArrayTd.length != 1 || jsonArrayTd[0] != "")) jsonArray.push(jsonArrayTd); rowIndex++; }); - var jsonExportArray =[]; - jsonExportArray.push({header:jsonHeaderArray,data:jsonArray}); + var jsonExportArray = []; + jsonExportArray.push({header: jsonHeaderArray, data: jsonArray}); var sdata = JSON.stringify(jsonExportArray); - if(defaults.consoleLog === true) + if (defaults.consoleLog === true) console.log(sdata); - if(defaults.outputMode == 'string') + if (defaults.outputMode == 'string') return sdata; var base64data = base64encode(sdata); - if(defaults.outputMode == 'base64') + if (defaults.outputMode == 'base64') return base64data; try { var blob = new Blob([sdata], {type: "application/json;charset=utf-8"}); - saveAs (blob, defaults.fileName + '.json'); + saveAs(blob, defaults.fileName + '.json'); } catch (e) { - downloadFile(defaults.fileName+'.json', 'data:application/json;charset=utf-8;base64,' + base64data); + downloadFile(defaults.fileName + '.json', 'data:application/json;charset=utf-8;base64,' + base64data); } - }else if(defaults.type == 'xml'){ + } else if (defaults.type === 'xml') { var rowIndex = 0; var xml = ''; xml += ''; // Header - $(el).find('thead').first().find(defaults.theadSelector).each(function() { + $(el).find('thead').first().find(defaults.theadSelector).each(function () { ForEachVisibleCell(this, 'th,td', rowIndex, - function(cell, row, col) { - xml += "" + parseString(cell, row, col) + ""; - }); + function (cell, row, col) { + xml += "" + parseString(cell, row, col) + ""; + }); rowIndex++; }); xml += ''; // Row Vs Column - var rowCount=1; - $(el).find('tbody').first().find(defaults.tbodySelector).each(function() { - var colCount=1; - var rxml=""; + var rowCount = 1; + $(el).find('tbody').first().find(defaults.tbodySelector).each(function () { + var colCount = 1; + var rxml = ""; ForEachVisibleCell(this, 'td', rowIndex, - function(cell, row, col) { - rxml += ""+parseString(cell, row, col)+""; - colCount++; - }); - if (rxml != ""){ - xml += '' + rxml + ''; + function (cell, row, col) { + rxml += "" + parseString(cell, row, col) + ""; + colCount++; + }); + if (rxml != "") { + xml += '' + rxml + ''; rowCount++; } @@ -255,89 +255,89 @@ THE SOFTWARE.*/ xml += ''; //output - if(defaults.consoleLog === true) + if (defaults.consoleLog === true) console.log(xml); - if(defaults.outputMode == 'string') + if (defaults.outputMode == 'string') return xml; var base64data = base64encode(xml); - if(defaults.outputMode == 'base64') + if (defaults.outputMode == 'base64') return base64data; try { var blob = new Blob([xml], {type: "application/xml;charset=utf-8"}); - saveAs (blob, defaults.fileName + '.xml'); + saveAs(blob, defaults.fileName + '.xml'); } catch (e) { - downloadFile(defaults.fileName+'.xml', 'data:application/xml;charset=utf-8;base64,' + base64data); + downloadFile(defaults.fileName + '.xml', 'data:application/xml;charset=utf-8;base64,' + base64data); } - }else if(defaults.type == 'excel' || defaults.type == 'doc'){ + } else if (defaults.type == 'excel' || defaults.type == 'doc') { //console.log($(this).html()); var rowIndex = 0; - var excel=""; + var excel = "
"; // Header - $(el).find('thead').first().find(defaults.theadSelector).each(function() { + $(el).find('thead').first().find(defaults.theadSelector).each(function () { excel += ""; ForEachVisibleCell(this, 'th,td', rowIndex, - function(cell, row, col) { - if (cell != null) { - excel += ""; - } - }); + function (cell, row, col) { + if (cell != null) { + excel += ""; + } + }); rowIndex++; excel += ''; }); // Row Vs Column - var rowCount=1; - $(el).find('tbody').first().find(defaults.tbodySelector).each(function() { + var rowCount = 1; + $(el).find('tbody').first().find(defaults.tbodySelector).each(function () { excel += ""; ForEachVisibleCell(this, 'td', rowIndex, - function(cell, row, col) { - if (cell != null) { - excel += "'; }); - if(defaults.displayTableName) - excel +=""; + if (defaults.displayTableName) + excel += ""; excel += '
" + parseString(cell, row, col)+ "" + parseString(cell, row, col) + "
"; - } - }); + function (cell, row, col) { + if (cell != null) { + excel += ""; + } + }); rowCount++; rowIndex++; excel += '
" + parseString($('

' + defaults.tableName + '

')) + "
" + parseString($('

' + defaults.tableName + '

')) + "
'; - if(defaults.consoleLog === true) + if (defaults.consoleLog === true) console.log(excel); - var excelFile = ""; - excelFile += ''; + var excelFile = ""; + excelFile += ''; excelFile += ''; excelFile += ""; - if (defaults.type == 'excel') { + if (defaults.type === 'excel') { excelFile += " + vertical-align: top; + } + + --> - -
-
-

- HTML Table Export
-

-
-
-
- - -

- - - - - - - - - - - - - -
C1C2C3
123
123
23
3
1 3
-

-

- - - - - - - - - - - - - -
C1C2C3
123
1 3
3
3
123
-

-

-

- - - - - - - - - - - - - -
C1C2C3
123
123
123
123
123
-

-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RankCountryPopulationDate% of worldLanguage
1China1,368,710,000March 14, 201518.9%中文
2India1,268,220,000March 14, 201517.5%हिन्दी
3United States320,583,000March 14, 20154.43%English
4Indonesia255,461,700July 1, 20153.53%
5Brazil204,014,000March 14, 20152.82%
6Pakistan189,223,000March 14, 20152.62%
7Nigeria183,523,000July 1, 20152.54%
8Bangladesh157,986,000March 14, 20152.18%
9Russia146,270,033January 1, 20152.02%Русский
10Japan126,970,000February 1, 20151.76%日本語
 
11Mexico121,005,815July 1, 20151.67%
12Philippines101,137,900March 14, 20151.4%
13Vietnam90,730,000July 1, 20141.25%Tiếng Việt
14Ethiopia90,076,012July 1, 20151.25%
15Egypt88,168,200March 14, 20151.22%
16Germany80,925,000June 30, 20141.12%Deutsch
17Iran78,184,800March 14, 20151.08%
18Turkey77,695,904December 31, 20141.07%Türkçe
19Democratic Republic of the Congo71,246,000July 1, 20150.99%
20France66,104,000February 1, 20150.91%Français
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
RankCountry (or dependent territory)PopulationDate% of world
- population
Source
1China[Note 2]1,370,440,000June 17, 201518.9%Official population clock
2India1,272,800,000June 17, 201517.6%Official population clock
3United States321,221,000June 17, 20154.43%Official population clock
4Indonesia255,461,700July 1, 20153.52%Official projection
5Brazil204,470,000June 17, 20152.82%Official population clock
6Pakistan190,092,000June 17, 20152.62%Official population clock
7Nigeria183,523,000July 1, 20152.53%UN projection
8Bangladesh158,521,000June 17, 20152.19%Official population clock
9Russia[Note 3]146,267,288January 1, 20152.02%Official estimate
10Japan126,880,000May 1, 20151.75%Monthly official estimate
11Mexico121,005,815July 1, 20151.67%Official projection
12Philippines101,608,100June 17, 20151.4%Official population clock
13Vietnam91,583,000July 1, 20151.25%Official Projection
14Ethiopia90,076,012July 1, 20151.24%Official projection
15Egypt88,702,100June 17, 20151.22%Official population clock
16Germany81,083,600September 30, 20141.12%Official estimate
17Iran78,417,900June 17, 20151.08%Official population clock
18Turkey77,695,904December 31, 20141.07%Annual official estimate
19Democratic Republic of the Congo71,246,000July 1, 20150.98%UN projection
20France[Note 4]66,139,000May 1, 20150.91%Monthly official estimate
21Thailand65,104,000July 1, 20150.9%Official annual projection
22United Kingdom64,800,000July 1, 20150.89%Official Projection
23Italy60,788,845December 31, 20140.84%Official annual projection
24South Africa54,002,000July 1, 20140.74%Official estimate
25Burma51,419,420March 29, 20140.71%Preliminary 2014 census result
26South Korea51,413,925June 1, 20150.71%Official projection
27Colombia48,175,100June 17, 20150.664%Official population clock
28Tanzania47,421,786July 1, 20140.65%Official Projection
29Kenya46,749,000July 1, 20150.64%UN projection
30Spain46,464,053July 1, 20140.64%Official estimate
31Argentina43,131,966July 1, 20150.59%Official annual projection
32Ukraine[Note 5]42,873,583April 1, 20150.59%Monthly official estimate
33Algeria40,400,000January 1, 20160.54%Official annual projection
34Poland38,484,000December 31, 20140.53%Official estimate
35Sudan38,435,252July 1, 20150.53%Official annual projection
36Iraq36,004,552July 1, 20140.5%Official annual projection
37Canada35,749,600April 1, 20150.49%Official estimate
38Uganda34,856,813August 28, 20140.48%Preliminary 2014 census result
39Morocco[7]33,848,242September 1, 20140.47%Preliminary 2014 census result
40Saudi Arabia31,521,418July 1, 20150.43%Official annual projection
41Peru31,151,643July 1, 20150.43%Official annual projection
42Uzbekistan31,022,500January 1, 20150.43%Official estimate
43Venezuela30,620,404July 1, 20150.42%Official annual projection
44Malaysia30,615,500June 17, 20150.422%Official population clock
45Nepal28,037,904July 1, 20150.39%Official annual projection
46Afghanistan27,101,365March 21, 20150.37%Official estimate
47Ghana27,043,093July 1, 20140.37%Official annual projection
48Yemen25,956,000July 1, 20140.36%Official estimate
49Mozambique25,727,911July 1, 20150.35%Annual official projection
50North Korea25,155,000July 1, 20150.35%UN projection
51Angola24,383,301May 16, 20140.34%Preliminary 2014 census result
52Australia23,880,600June 17, 20150.329%Official population clock
53Taiwan[Note 6]23,456,545May 30, 20150.32%Monthly official estimate
54Syria23,243,820June 17, 20150.32%Official population clock[Note 7]
55Ivory Coast22,671,331May 15, 20140.31%Preliminary 2014 Census Result
56Madagascar21,842,167July 1, 20130.3%Annual official estimate
57Cameroon21,143,237July 1, 20130.29%Official estimate
58Sri Lanka20,675,000July 1, 20140.29%Official Estimate
59Romania19,942,642January 1, 20140.28%Annual official estimate
60Niger19,268,000July 1, 20150.27%UN projection
61Burkina Faso18,450,494July 1, 20150.25%Official estimate
62Chile18,006,407July 1, 20150.25%Official annual projection
63Kazakhstan17,498,100May 1, 20150.24%Monthly official estimate
64Netherlands16,907,100June 17, 20150.233%Official Population Clock
65Malawi16,310,431July 1, 20150.22%Official annual projection
66Mali16,259,000July 1, 20150.22%UN projection
67Guatemala15,806,675July 1, 20140.22%Official estimate
68Ecuador15,476,000May 1, 20150.21%Official population clock
69Zambia15,473,905July 1, 20150.21%Official annual projection
70Cambodia15,405,157July 1, 20150.21%Official annual projection
71Chad13,606,000July 1, 20150.19%UN projection
72Senegal13,508,715November 19, 20130.19%2013 census result
73Zimbabwe13,061,239August 17, 20120.18%2012 Census Result
74Dominican Republic12,957,394April 1, 20150.18%/vol1.pdf Official estimate of 2015
75South Sudan11,892,934July 1, 20150.16%Official annual projection
76Bolivia11,410,651July 1, 20150.16%Official projection
77Belgium11,242,781April 1, 20150.16%Monthly official estimate
78Cuba11,210,064December 31, 20130.15%Annual official estimate
79Somalia[Note 8]11,123,000July 1, 20150.15%UN projection
80Rwanda10,996,891July 1, 20140.15%Annual official estimate
81Tunisia10,982,754April 23, 20140.15%Preliminary 2014 census result
82Haiti10,911,819July 1, 20150.15%Official projection
83Greece10,816,286May 9, 20110.15%Final 2011 census result
84Guinea10,628,972April 2, 20140.15%Preliminary 2014 census result
85Czech Republic10,538,275December 31, 20140.15%Official quarterly estimate
86Portugal10,477,800December 31, 20130.14%Annual official estimate
87Benin10,315,244July 1, 20150.14%Official projection
88Hungary9,849,000December 31, 20140.14%Annual official estimate
89Burundi9,823,827July 1, 20150.14%Official annual projection
90Sweden9,775,57230 April 20150.13%Monthly official estimate
91Azerbaijan9,627,900May 1, 20150.13%Official estimate
92United Arab Emirates9,577,000July 1, 20150.13%UN projection
93Belarus9,481,000January 1, 20150.13%Quarterly official estimate
94Honduras8,725,111July 1, 20140.12%Annual official estimate
95Austria8,579,747January 1, 20150.12%Quarterly provisional figure
96Tajikistan8,354,000January 1, 20150.12%Official estimate
97Israel8,345,700April 30, 20150.12%Official monthly estimate
98Switzerland8,236,600December 31, 20140.11%Quarterly provisional figure
99Papua New Guinea7,398,500July 1, 20130.102%Annual official estimate
100Hong Kong7,264,100December 31, 20140.1%Official estimate
101Bulgaria7,202,198December 31, 20140.099%Official estimate
102Togo7,171,000July 1, 20150.099%UN projection
103Serbia[Note 9]7,146,759January 1, 20140.099%Annual official estimate
104Paraguay7,003,40620150.097%Official estimate
105Laos6,802,000July 1, 20150.094%Annual official projection
106Jordan6,742,710June 17, 20150.093%Official population clock
107Eritrea6,738,000July 1, 20150.093%UN projection
108El Salvador6,401,24020140.088%Official estimate
109Sierra Leone6,319,000July 1, 20150.087%UN projection
110Libya6,317,000July 1, 20150.087%UN projection
111Nicaragua6,134,27020130.085%Official estimate
112Kyrgyzstan5,915,300March 1, 20150.081%Official estimate
113Denmark5,668,743April 1, 20150.078%Quarterly official estimate
114Finland5,478,002April 15, 20150.076%Official population clock
115Singapore5,469,700July 1, 20140.075%Official estimate
116Slovakia5,421,349December 31, 20140.075%Official estimate
117Norway5,176,998April 1, 20150.071%Quarterly official estimate
118Central African Republic4,803,000July 1, 20150.066%UN projection
119Costa Rica4,773,130June 30, 20140.066%Official estimate
120Turkmenistan4,751,120December 26, 20120.066%Preliminary 2012 census result
121Palestine4,682,467July 1, 20150.065%Official estimate
122Republic of the Congo4,671,000July 1, 20140.064%UN projection
123Ireland4,609,600April 1, 20140.064%Annual official estimate
124New Zealand4,589,520June 17, 20150.0633%Official population clock
125Liberia4,503,000July 1, 20150.062%UN projection
126Croatia4,267,558July 1, 20120.059%Annual official estimate
127Oman4,161,705April 8, 20150.057%Weekly official estimate
128Lebanon4,104,000July 1, 20120.057%Official estimate
129Bosnia and Herzegovina3,791,622October 15, 20130.052%Preliminary 2013 census result
130Panama3,764,166July 1, 20150.05%Official estimate
131Georgia[Note 10]3,729,500January 1, 20150.051%Annual official estimate
132Mauritania3,631,775July 1, 20150.05%Annual official estimate
133Moldova[Note 11]3,555,200January 1, 20150.049%Official estimate
134Puerto Rico (U.S.)3,548,397July 1, 20140.049%Official estimate
135Uruguay3,404,189June 30, 20140.047%Annual official estimate
136Kuwait3,268,431July 1, 20120.045%Official estimate
137Mongolia3,022,468June 17, 20150.042%Official population clock
138Armenia3,013,900September 30, 20140.042%Quarterly official estimate
139Lithuania2,904,391June 1, 20150.04%Monthly official estimate
140Albania2,893,005January 1, 20150.04%Annual official estimate
141Jamaica2,717,991December 31, 20130.037%Annual official estimate
142Qatar2,334,029February 28, 20150.032%Monthly official estimate
143Namibia2,280,700July 1, 20150.031%Final 2011 census result
144Lesotho2,120,000July 1, 20150.029%UN projection
145Slovenia2,066,990June 17, 20150.029%Official population clock
146Macedonia2,065,769December 31, 20130.028%Official estimate
147Botswana2,056,000July 1, 20150.028%UN Projection
148Latvia1,980,700May 1, 20150.027%Monthly official estimate
149The Gambia1,882,450April 15, 20130.026%Preliminary 2013 census result
150Kosovo[Note 12]1,827,23120150.025%Official annual projection
151Guinea-Bissau1,788,000July 1, 20150.025%UN projection
152Gabon1,751,000July 1, 20150.024%UN projection
153Equatorial Guinea1,430,000July 1, 20130.02%Annual official estimate
154Trinidad and Tobago1,328,019January 9, 20110.018%Official Estimate
155Bahrain1,316,500July 1, 20140.018%Official annual projection
156Estonia1,313,271January 1, 20150.018%Official estimate
157Mauritius1,261,208July 1, 20140.017%Official estimate
158East Timor1,212,107July 1, 20140.017%Official estimate
159Swaziland1,119,375July 1, 20150.015%Official projection
160Djibouti900,000July 1, 20150.012%UN projection
161Fiji859,178July 1, 20130.0118%Annual official estimate
162Cyprus[Note 13]858,000December 31, 20130.012%Official estimate
163R궮ion (France)844,994January 1, 20140.012%Official annual estimate
164Comoros763,952July 1, 20140.011%Official estimate
165Bhutan761,650June 17, 20150.0105%Official population clock
166Guyana746,900July 1, 20130.01%Official estimate
167Macau (China)636,200December 31, 20140.0088%Official quarterly estimate
168Montenegro620,029April 1, 20110.0086%Final 2011 census result
169Solomon Islands581,344July 1, 20130.008%Annual official estimate
170Luxembourg562,958December 31, 20140.0078%Annual official estimate
171Suriname534,189August 13, 20120.0074%Preliminary 2012 census result
172Cape Verde518,467July 1, 20140.0072%Official annual projection
173Western Sahara[Note 14]510,713September 2, 20140.007%Preliminary 2014 census result
174Transnistria[Note 15]505,153January 1, 20140.007%Official estimate
175Malta425,384December 31, 20130.0059%Official annual estimate
176Guadeloupe (France)405,739January 1, 20130.0056%Official annual estimate
177Brunei393,372June 20, 20110.0054%Preliminary 2011 census result
178Martinique (France)381,326January 1, 20140.0053%Official annual estimate
179The Bahamas368,390July 1, 20130.0051%Annual official estimate
180Belize358,899July 1, 20140.0049%Official estimate
181Maldives341,256September 20, 20140.0047%Preliminary 2014 census result
182Iceland329,740April 1, 20150.0045%Quarterly official estimate
183Northern Cyprus[Note 16]294,396December 4, 20110.004%Final 2011 census result
184Barbados285,000July 1, 20130.0039%Official estimate
185New Caledonia (France)268,767August 26, 20140.0037%Preliminary 2014 census result
186French Polynesia (France)268,270August 22, 20120.0037%Preliminary 2012 census result
187Vanuatu264,652July 1, 20130.0036%Annual official estimate
188Abkhazia[Note 17]240,70520110.0033%Official census
189French Guiana (France)239,648January 1, 20120.0033%Annual official estimate
190Mayotte (France)212,645August 21, 20120.0029%2012 census result
191Samoa187,820November 7, 20110.0026%Final 2011 census result
192S䯠Tom顡nd Pripe187,356May 13, 20120.0026%2012 census result
193Saint Lucia185,000July 1, 20150.0026%UN projection
194Guam (U.S.)159,358April 1, 20100.0022%Final 2010 census result
195Cura袯 (Netherlands)154,843January 1, 20140.0021%Annual official estimate
196Saint Vincent and the Grenadines109,000July 1, 20150.0015%UN projection
197Aruba (Netherlands)107,394October 31, 20140.0015%Official quarterly estimate
198Kiribati106,461July 1, 20130.0015%Annual official estimate
199United States Virgin Islands (U.S.)106,405April 1, 20100.0015%Final 2010 census result
200Grenada103,328May 12, 20110.0014%2011 census result
201Tonga103,252November 30, 20110.0014%2011 census result
202Federated States of Micronesia101,351July 1, 20130.0014%Annual official estimate
203Jersey (UK)99,000December 31, 20120.0014%Annual official estimate
204Seychelles89,949July 1, 20130.0012%Annual official estimate
205Antigua and Barbuda86,295May 27, 20110.0012%Preliminary 2011 census result
206Isle of Man (UK)84,497March 27, 20110.0012%2011 census result
207Andorra76,949July 1, 20140.0011%Annual official estimate
208Dominica71,293May 14, 20110.00098%Preliminary 2011 census result
209Guernsey (UK)65,150March 31, 20140.0009%Annual official estimate
210Bermuda (UK)64,237May 20, 20100.00089%Final 2010 census result
211Marshall Islands56,086July 1, 20130.00077%Annual official estimate
212Greenland (Denmark)55,984January 1, 20150.00077%Annual official estimate
213Cayman Islands (UK)55,69120130.00077%Official estimate
214American Samoa (U.S.)55,519April 1, 20100.00077%Final 2010 census result
215Saint Kitts and Nevis55,000July 1, 20150.00076%UN projection
216Northern Mariana Islands (U.S.)53,883April 1, 20100.00074%Final 2010 census result
217South Ossetia[Note 18]51,547January, 20130.00071%Estimate
218Faroe Islands (Denmark)48,724January 1, 20150.00067%Monthly official estimate
219Sint Maarten (Netherlands)37,429January 1, 20100.00052%Official estimate
220Liechtenstein37,370December 31, 20140.00052%Semi annual official estimate
221Monaco37,800December 31, 20140.00052%Annual official estimate
222Collectivity of Saint Martin (France)36,522January 1, 20150.0005%Annual official estimate
223San Marino32,789December 31, 20140.00045%Monthly official estimate
224Turks and Caicos Islands (UK)31,458January 25, 20120.00043%2012 census result
225Gibraltar (UK)30,001December 31, 20120.00041%Annual official estimate
226Ƭand Islands (Finland)28,875September 30, 20140.0004%Official estimate
227British Virgin Islands (UK)28,054July 12, 20100.00039%2010 census result
228Caribbean Netherlands (Netherlands)23,296January 1, 20130.00032%Official estimate
229Palau20,901July 1, 20130.00029%Annual official estimate
230Cook Islands (New Zealand)14,974December 1, 20110.00021%Final 2011 census result
231Anguilla (UK)13,452May 11, 20110.00019%Preliminary 2011 census result
232Wallis and Futuna (France)13,135July 1, 20130.00018%Annual official estimate
233Tuvalu11,323July 1, 20130.00016%Annual official estimate
234Nauru10,084October 30, 20110.00014%2011 census result
235Saint Barthꭥmy (France)9,269January 1, 20150.00013%Annual official estimate
236Saint Pierre and Miquelon (France)6,069January 1, 20120.000084%Annual official estimate
237Montserrat (UK)4,922May 12, 20110.000068%2011 census result
238Saint Helena, Ascension and Tristan da Cunha (UK)4,000July 1, 20150.000055%UN projection
239Falkland Islands (UK)3,000July 1, 20150.000041%UN projection
240Svalbard and Jan Mayen (Norway)2,562July 1, 20140.000037%Official estimate
241Norfolk Island (Australia)2,302August 9, 20110.000032%2011 census result
242Christmas Island (Australia)2,072August 9, 20110.000029%2011 census result
243Niue (New Zealand)1,613September 10, 20110.000022%Final 2011 census result
244Tokelau (NZ)1,411October 18, 20110.000019%Final 2011 census result
245Vatican City839July 1, 20120.000012%Official estimate
246Cocos (Keeling) Islands (Australia)550August 9, 20110.0000076%2011 census result
247Pitcairn Islands (UK)5620130.00000077%Official estimate
- -

-
-
-
- + + +
+

+ HTML Table Export
+

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
C1C2C3
123
123
23
3
13
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
C1C2C3
123
13
3
3
123
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
C1C2C3
123
123
123
123
123
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
RankCountryPopulationDate% of worldLanguage
1China1,368,710,000March 14, 201518.9%中文
2India1,268,220,000March 14, 201517.5%हिन्दी
3United States320,583,000March 14, 20154.43%English
4Indonesia255,461,700July 1, 20153.53%
5Brazil204,014,000March 14, 20152.82%
6Pakistan189,223,000March 14, 20152.62%
7Nigeria183,523,000July 1, 20152.54%
8Bangladesh157,986,000March 14, 20152.18%
9Russia146,270,033January 1, 20152.02%Русский
10Japan126,970,000February 1, 20151.76%日本語
 
11Mexico121,005,815July 1, 20151.67%
12Philippines101,137,900March 14, 20151.4%
13Vietnam90,730,000July 1, 20141.25%Tiếng Việt
14Ethiopia90,076,012July 1, 20151.25%
15Egypt88,168,200March 14, 20151.22%
16Germany80,925,000June 30, 20141.12%Deutsch
17Iran78,184,800March 14, 20151.08%
18Turkey77,695,904December 31, 20141.07%Türkçe
19Democratic Republic of the Congo71,246,000July 1, 20150.99%
20France66,104,000February 1, 20150.91%Français
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Rank + Country (or dependent + territory) + PopulationDate% of world
+ population +
Source
1China[Note 2]1,370,440,000June 17, 201518.9%Official + population clock
2India1,272,800,000June 17, 201517.6%Official population clock
3United States321,221,000June 17, 20154.43%Official + population clock
4Indonesia255,461,700July 1, 20153.52%Official projection
5Brazil204,470,000June 17, 20152.82%Official population clock
6Pakistan190,092,000June 17, 20152.62%Official + population clock
7Nigeria183,523,000July 1, 20152.53%UN projection
8Bangladesh158,521,000June 17, 20152.19%Official + population clock
9Russia[Note 3]146,267,288January 1, 20152.02%Official estimate
10Japan126,880,000May 1, 20151.75%Monthly official estimate
11Mexico121,005,815July 1, 20151.67%Official projection
12Philippines101,608,100June 17, 20151.4%Official + population clock
13Vietnam91,583,000July 1, 20151.25%Official Projection
14Ethiopia90,076,012July 1, 20151.24%Official projection
15Egypt88,702,100June 17, 20151.22%Official + population clock
16Germany81,083,600September 30, 20141.12%Official estimate
17Iran78,417,900June 17, 20151.08%Official population clock
18Turkey77,695,904December 31, 20141.07%Annual official estimate
19Democratic Republic + of the Congo71,246,000July 1, 20150.98%UN projection
20France[Note 4]66,139,000May 1, 20150.91%Monthly official estimate
21Thailand65,104,000July 1, 20150.9%Official annual projection
22United Kingdom64,800,000July 1, 20150.89%Official Projection
23Italy60,788,845December 31, 20140.84%Official annual projection
24South Africa54,002,000July 1, 20140.74%Official estimate
25Burma51,419,420March 29, 20140.71%Preliminary 2014 census result
26South Korea51,413,925June 1, 20150.71%Official projection
27Colombia48,175,100June 17, 20150.664%Official population clock
28Tanzania47,421,786July 1, 20140.65%Official + Projection
29Kenya46,749,000July 1, 20150.64%UN projection
30Spain46,464,053July 1, 20140.64%Official estimate
31Argentina43,131,966July 1, 20150.59%Official annual projection
32Ukraine[Note 5]42,873,583April 1, 20150.59%Monthly official estimate
33Algeria40,400,000January 1, 20160.54%Official annual projection
34Poland38,484,000December 31, 20140.53%Official + estimate
35Sudan38,435,252July 1, 20150.53%Official annual projection
36Iraq36,004,552July 1, 20140.5%Official annual projection
37Canada35,749,600April 1, 20150.49%Official estimate
38Uganda34,856,813August 28, 20140.48%Preliminary 2014 census result
39Morocco[7]33,848,242September 1, 20140.47%Preliminary 2014 census result
40Saudi Arabia31,521,418July 1, 20150.43%Official annual projection
41Peru31,151,643July 1, 20150.43%Official annual projection
42Uzbekistan31,022,500January 1, 20150.43%Official + estimate
43Venezuela30,620,404July 1, 20150.42%Official annual projection
44Malaysia30,615,500June 17, 20150.422%Official + population clock
45Nepal28,037,904July 1, 20150.39%Official annual projection
46Afghanistan27,101,365March 21, 20150.37%Official estimate
47Ghana27,043,093July 1, 20140.37%Official annual projection
48Yemen25,956,000July 1, 20140.36%Official estimate
49Mozambique25,727,911July 1, 20150.35%Annual official projection
50North Korea25,155,000July 1, 20150.35%UN projection
51Angola24,383,301May 16, 20140.34%Preliminary + 2014 census result
52Australia23,880,600June 17, 20150.329%Official population clock
53Taiwan[Note 6]23,456,545May 30, 20150.32%Monthly official estimate
54Syria23,243,820June 17, 20150.32%Official + population clock[Note + 7]
55Ivory Coast22,671,331May 15, 20140.31%Preliminary 2014 Census Result
56Madagascar21,842,167July 1, 20130.3%Annual official estimate
57Cameroon21,143,237July 1, 20130.29%Official estimate
58Sri Lanka20,675,000July 1, 20140.29%Official Estimate
59Romania19,942,642January 1, 20140.28%Annual official estimate
60Niger19,268,000July 1, 20150.27%UN projection
61Burkina Faso18,450,494July 1, 20150.25%Official + estimate
62Chile18,006,407July 1, 20150.25%Official annual projection
63Kazakhstan17,498,100May 1, 20150.24%Monthly official estimate
64Netherlands16,907,100June 17, 20150.233%Official Population Clock
65Malawi16,310,431July 1, 20150.22%Official annual projection
66Mali16,259,000July 1, 20150.22%UN projection
67Guatemala15,806,675July 1, 20140.22%Official estimate
68Ecuador15,476,000May 1, 20150.21%Official population clock
69Zambia15,473,905July 1, 20150.21%Official annual projection
70Cambodia15,405,157July 1, 20150.21%Official annual projection
71Chad13,606,000July 1, 20150.19%UN projection
72Senegal13,508,715November 19, 20130.19%2013 census result
73Zimbabwe13,061,239August 17, 20120.18%2012 + Census Result
74Dominican Republic12,957,394April 1, 20150.18%/vol1.pdf Official estimate of 2015
75South Sudan11,892,934July 1, 20150.16%Official annual projection
76Bolivia11,410,651July 1, 20150.16%Official projection
77Belgium11,242,781April 1, 20150.16%Monthly official estimate
78Cuba11,210,064December 31, 20130.15%Annual official estimate
79Somalia[Note 8]11,123,000July 1, 20150.15%UN projection
80Rwanda10,996,891July 1, 20140.15%Annual + official estimate
81Tunisia10,982,754April 23, 20140.15%Preliminary 2014 census result
82Haiti10,911,819July 1, 20150.15%Official projection
83Greece10,816,286May 9, 20110.15%Final 2011 census result
84Guinea10,628,972April 2, 20140.15%Preliminary 2014 census result
85Czech Republic10,538,275December 31, 20140.15%Official quarterly estimate
86Portugal10,477,800December 31, 20130.14%Annual official estimate
87Benin10,315,244July 1, 20150.14%Official projection
88Hungary9,849,000December 31, 20140.14%Annual official estimate
89Burundi9,823,827July 1, 20150.14%Official annual projection
90Sweden9,775,57230 April 20150.13%Monthly official estimate
91Azerbaijan9,627,900May 1, 20150.13%Official + estimate
92United Arab Emirates9,577,000July 1, 20150.13%UN projection
93Belarus9,481,000January 1, 20150.13%Quarterly official estimate
94Honduras8,725,111July 1, 20140.12%Annual official estimate
95Austria8,579,747January 1, 20150.12%Quarterly provisional figure
96Tajikistan8,354,000January 1, 20150.12%Official + estimate
97Israel8,345,700April 30, 20150.12%Official monthly estimate
98Switzerland8,236,600December 31, 20140.11%Quarterly provisional figure
99Papua New Guinea7,398,500July 1, 20130.102%Annual official estimate
100Hong Kong7,264,100December 31, 20140.1%Official estimate
101Bulgaria7,202,198December 31, 20140.099%Official estimate
102Togo7,171,000July 1, 20150.099%UN projection
103Serbia[Note 9]7,146,759January 1, 20140.099%Annual official estimate
104Paraguay7,003,40620150.097%Official estimate
105Laos6,802,000July 1, 20150.094%Annual official projection
106Jordan6,742,710June 17, 20150.093%Official + population clock
107Eritrea6,738,000July 1, 20150.093%UN projection
108El Salvador6,401,24020140.088%Official estimate
109Sierra Leone6,319,000July 1, 20150.087%UN projection
110Libya6,317,000July 1, 20150.087%UN projection
111Nicaragua6,134,27020130.085%Official estimate
112Kyrgyzstan5,915,300March 1, 20150.081%Official estimate
113Denmark5,668,743April 1, 20150.078%Quarterly official estimate
114Finland5,478,002April 15, 20150.076%Official population clock
115Singapore5,469,700July 1, 20140.075%Official estimate
116Slovakia5,421,349December 31, 20140.075%Official estimate
117Norway5,176,998April 1, 20150.071%Quarterly official estimate
118Central African Republic4,803,000July 1, 20150.066%UN projection
119Costa Rica4,773,130June 30, 20140.066%Official estimate
120Turkmenistan4,751,120December 26, 20120.066%Preliminary 2012 census result
121Palestine4,682,467July 1, 20150.065%Official estimate
122Republic of the Congo4,671,000July 1, 20140.064%UN projection
123Ireland4,609,600April 1, 20140.064%Annual official estimate
124New Zealand4,589,520June 17, 20150.0633%Official population clock
125Liberia4,503,000July 1, 20150.062%UN projection
126Croatia4,267,558July 1, 20120.059%Annual official estimate
127Oman4,161,705April 8, 20150.057%Weekly official estimate
128Lebanon4,104,000July 1, 20120.057%Official estimate
129Bosnia and Herzegovina3,791,622October 15, 20130.052%Preliminary 2013 census result
130Panama3,764,166July 1, 20150.05%Official estimate
131Georgia[Note 10]3,729,500January 1, 20150.051%Annual official estimate
132Mauritania3,631,775July 1, 20150.05%Annual official estimate
133Moldova[Note 11]3,555,200January 1, 20150.049%Official + estimate
134Puerto Rico (U.S.) + 3,548,397July 1, 20140.049%Official estimate
135Uruguay3,404,189June 30, 20140.047%Annual official estimate
136Kuwait3,268,431July 1, 20120.045%Official estimate
137Mongolia3,022,468June 17, 20150.042%Official + population clock
138Armenia3,013,900September 30, 20140.042%Quarterly official estimate
139Lithuania2,904,391June 1, 20150.04%Monthly + official estimate
140Albania2,893,005January 1, 20150.04%Annual official estimate
141Jamaica2,717,991December 31, 20130.037%Annual official estimate
142Qatar2,334,029February 28, 20150.032%Monthly official estimate
143Namibia2,280,700July 1, 20150.031%Final 2011 census result
144Lesotho2,120,000July 1, 20150.029%UN projection
145Slovenia2,066,990June 17, 20150.029%Official population clock
146Macedonia2,065,769December 31, 20130.028%Official estimate
147Botswana2,056,000July 1, 20150.028%UN Projection
148Latvia1,980,700May 1, 20150.027%Monthly official estimate
149The Gambia1,882,450April 15, 20130.026%Preliminary 2013 census result
150Kosovo[Note 12]1,827,23120150.025%Official annual projection
151Guinea-Bissau1,788,000July 1, 20150.025%UN projection
152Gabon1,751,000July 1, 20150.024%UN projection
153Equatorial Guinea1,430,000July 1, 20130.02%Annual official estimate
154Trinidad and Tobago1,328,019January 9, 20110.018%Official Estimate
155Bahrain1,316,500July 1, 20140.018%Official annual projection
156Estonia1,313,271January 1, 20150.018%Official estimate
157Mauritius1,261,208July 1, 20140.017%Official estimate
158East Timor1,212,107July 1, 20140.017%Official + estimate
159Swaziland1,119,375July 1, 20150.015%Official projection
160Djibouti900,000July 1, 20150.012%UN projection
161Fiji859,178July 1, 20130.0118%Annual official estimate
162Cyprus[Note 13]858,000December 31, 20130.012%Official estimate
163R궮ion (France) + 844,994January 1, 20140.012%Official annual estimate
164Comoros763,952July 1, 20140.011%Official estimate
165Bhutan761,650June 17, 20150.0105%Official population clock
166Guyana746,900July 1, 20130.01%Official estimate
167Macau (China) + 636,200December 31, 20140.0088%Official quarterly estimate
168Montenegro620,029April 1, 20110.0086%Final 2011 census result
169Solomon Islands581,344July 1, 20130.008%Annual official estimate
170Luxembourg562,958December 31, 20140.0078%Annual official estimate
171Suriname534,189August 13, 20120.0074%Preliminary 2012 census result
172Cape Verde518,467July 1, 20140.0072%Official annual projection
173Western Sahara[Note 14]510,713September 2, 20140.007%Preliminary 2014 census result
174Transnistria[Note 15]505,153January 1, 20140.007%Official estimate
175Malta425,384December 31, 20130.0059%Official annual estimate
176Guadeloupe (France) + 405,739January 1, 20130.0056%Official annual estimate
177Brunei393,372June 20, 20110.0054%Preliminary 2011 census result
178Martinique (France) + 381,326January 1, 20140.0053%Official annual estimate
179The Bahamas368,390July 1, 20130.0051%Annual official estimate
180Belize358,899July 1, 20140.0049%Official estimate
181Maldives341,256September 20, 20140.0047%Preliminary 2014 census result
182Iceland329,740April 1, 20150.0045%Quarterly official estimate
183Northern Cyprus[Note 16]294,396December 4, 20110.004%Final 2011 census result
184Barbados285,000July 1, 20130.0039%Official estimate
185New Caledonia (France) + 268,767August 26, 20140.0037%Preliminary 2014 census result
186French Polynesia (France) + 268,270August 22, 20120.0037%Preliminary 2012 census result
187Vanuatu264,652July 1, 20130.0036%Annual official estimate
188Abkhazia[Note 17]240,70520110.0033%Official census
189French Guiana (France) + 239,648January 1, 20120.0033%Annual official estimate
190Mayotte (France) + 212,645August 21, 20120.0029%2012 census result
191Samoa187,820November 7, 20110.0026%Final 2011 + census result
192S䯠Tom顡nd Pripe187,356May 13, 20120.0026%2012 census result
193Saint Lucia185,000July 1, 20150.0026%UN projection
194Guam (U.S.) + 159,358April 1, 20100.0022%Final 2010 census result
195Cura袯 (Netherlands) + 154,843January 1, 20140.0021%Annual official estimate
196Saint Vincent and the + Grenadines109,000July 1, 20150.0015%UN projection
197Aruba (Netherlands) + 107,394October 31, 20140.0015%Official quarterly estimate
198Kiribati106,461July 1, 20130.0015%Annual official estimate
199United + States Virgin Islands (U.S.) + 106,405April 1, 20100.0015%Final 2010 census result
200Grenada103,328May 12, 20110.0014%2011 census result
201Tonga103,252November 30, 20110.0014%2011 census result
202Federated States of + Micronesia101,351July 1, 20130.0014%Annual official estimate
203Jersey (UK) + 99,000December 31, 20120.0014%Annual official estimate
204Seychelles89,949July 1, 20130.0012%Annual official estimate
205Antigua and Barbuda86,295May 27, 20110.0012%Preliminary 2011 census result
206Isle of Man (UK) + 84,497March 27, 20110.0012%2011 census result
207Andorra76,949July 1, 20140.0011%Annual official estimate
208Dominica71,293May 14, 20110.00098%Preliminary 2011 census result
209Guernsey (UK) + 65,150March 31, 20140.0009%Annual official estimate
210Bermuda (UK) + 64,237May 20, 20100.00089%Final 2010 census result
211Marshall Islands56,086July 1, 20130.00077%Annual official estimate
212Greenland (Denmark) + 55,984January 1, 20150.00077%Annual official estimate
213Cayman Islands (UK) + 55,69120130.00077%Official estimate
214American Samoa (U.S.) + 55,519April 1, 20100.00077%Final 2010 census result
215Saint Kitts and Nevis55,000July 1, 20150.00076%UN projection
216Northern Mariana + Islands (U.S.) + 53,883April 1, 20100.00074%Final 2010 census result
217South Ossetia[Note 18]51,547January, 20130.00071%Estimate
218Faroe Islands (Denmark) + 48,724January 1, 20150.00067%Monthly + official estimate
219Sint Maarten (Netherlands) + 37,429January 1, 20100.00052%Official estimate
220Liechtenstein37,370December 31, 20140.00052%Semi annual official estimate
221Monaco37,800December 31, 20140.00052%Annual official estimate
222Collectivity of Saint + Martin (France) + 36,522January 1, 20150.0005%Annual official estimate
223San Marino32,789December 31, 20140.00045%Monthly official estimate
224Turks and Caicos + Islands (UK) + 31,458January 25, 20120.00043%2012 census result
225Gibraltar (UK) + 30,001December 31, 20120.00041%Annual official estimate
226Ƭand Islands (Finland) + 28,875September 30, 20140.0004%Official estimate
227British Virgin + Islands (UK) + 28,054July 12, 20100.00039%2010 census result
228Caribbean + Netherlands (Netherlands) + 23,296January 1, 20130.00032%Official estimate
229Palau20,901July 1, 20130.00029%Annual official estimate
230Cook Islands (New + Zealand) + 14,974December 1, 20110.00021%Final 2011 census result
231Anguilla (UK) + 13,452May 11, 20110.00019%Preliminary 2011 census result
232Wallis and Futuna (France) + 13,135July 1, 20130.00018%Annual official estimate
233Tuvalu11,323July 1, 20130.00016%Annual official estimate
234Nauru10,084October 30, 20110.00014%2011 census result
235Saint Barthꭥmy (France) + 9,269January 1, 20150.00013%Annual official estimate
236Saint Pierre and + Miquelon (France) + 6,069January 1, 20120.000084%Annual official estimate
237Montserrat (UK) + 4,922May 12, 20110.000068%2011 census result
238Saint Helena, Ascension and + Tristan da Cunha (UK) + 4,000July 1, 20150.000055%UN projection
239Falkland Islands (UK) + 3,000July 1, 20150.000041%UN projection
240Svalbard and Jan + Mayen (Norway) + 2,562July 1, 20140.000037%Official estimate
241Norfolk Island (Australia) + 2,302August 9, 20110.000032%2011 census result
242Christmas Island (Australia) + 2,072August 9, 20110.000029%2011 census result
243Niue (New Zealand) + 1,613September 10, 20110.000022%Final 2011 census result
244Tokelau (NZ) + 1,411October 18, 20110.000019%Final 2011 census result
245Vatican City839July 1, 20120.000012%Official estimate
246Cocos (Keeling) + Islands (Australia) + 550August 9, 20110.0000076%2011 census result
247Pitcairn Islands (UK) + 5620130.00000077%Official + estimate
+
+