Download
The best method for getting a hold of DataTables for use in your project depends upon your programming environment. The download builder below provides a simple method that you can use to build your own custom DataTables package - including only the software that you need, and providing options to have it hosted on the DataTables CDN, download the package locally or install through a package manager such as npm, yarn or NuGET.
If you are upgrading an old version of a DataTables CDN or downloaded file created by this download builder and want to use the same build options with the latest versions, look in the JS file header and you'll find a URL that will automatically select the options needed.
Step 1. Choose a styling framework
Step 2. Select packages
Extensions
Step 3. Pick a download method
- CDN
- Download
- NPM
- Yarn
- Bower
- NuGet
- Composer
The DataTables CDN provides a convenient way to quickly get started with DataTables. The DataTables software is hosted on the CDN (powered by CloudFlare) and you simply need to include the HTML and CSS files as directed below.
The files required for the link
and script
tags shown above can be downloaded using the button below. The package is downloaded as a zip file which should be unzipped and uploaded to your web-server.
Use the following to install the selected software in your own package:
Please note that the packages for DataTables and all of its extensions include TypeScript type definitions that will be automatically detected and used if you are using TypeScript.
The Editor NPM package is available from our private registry and you need to setup authentication before it can be used. Please see the documentation here for details of how to do this and to find your access key.
ES modules
To use the software selected from above with an ES module loader (e.g. modern Node.js, Vite, ESBuild, etc) use the following import statements:
CommonJS
If you are using CommonJS as the loader for your Javascript, use the following code to require
the modules (see the Node.js / NPM install documentation for full details of using DataTables with a module loader):
Install
Use the following to install the selected software in your package:
The Editor NPM package is available from our private registry and you need to setup authentication before it can be used. Please see the documentation here for details of how to do this and to find your access key.
ES modules
To use the software selected from above with an ES module loader (e.g. modern Node.js, Vite, ESBuild, etc) use the following import statements:
CommonJS
If you are using CommonJS as the loader for your Javascript, use the following code to require
the modules (see the Node.js / NPM install documentation for full details of using DataTables with a module loader):
Bower is a popular client-side package manager, and while it has now largely been supplanted by npm / yarn, there are still a number of older projects that use it.
Install
Nuget is the package manager for .NET applications, the DataTables packages are hosted here so that they can be easily integrated into .NET projects.
Please note that Editor is not currently available on NuGET. Please download the files directly and reference locally, or use the NPM packages.
Install
Composer is the dependency manage for PHP. The packages are hosted and available through Composer from Packagist, which is the main composer repository.
Please note that Editor is not currently available on NuGET. Please download the files directly and reference locally, or use the NPM packages.