Welcome to CardGen

While this site does save your data in your local web starage, please also back it up externally.

Simple browser based card generator for faster prototyping of boardgames. I designed this as a single HTML file with embedded CSS and JavaScript, to make it easier for you to download, modify and run offline. The tool requires basic knowledge of HTML and CSS, but hopefully editing the initial templates should be enough to get you started.

For more info or suggestions please visit https://github.com/vildninja/card.

Happy prototyping :)
/Jannek

CSS style

The style of the cards. I have provided a basic example, but it should be easy to modify to your liking without too much effort. Read more about positioning elements on w3scools.com/css.

HTML design

The template of the cards. The content of this box will be duplicated for every line in the CSV document. To insert text from the CSV document simlpy write %label% in the template. Please use \% to write %.
You can also write %IF%label% ... %END% to only include segment if value is present for the given label. Alternative you can write %IF=x%label% ... %END% to only include segment if value for the given label is equal to x.
Or %FOR%label% ... %END% to repeat a segment according to the number provided for the label. Read more about HTML on w3schools.com/html.

CSV data

The comma seperated values. Any spread sheet editor should support export to this format. The first row of data should allways be the labels used to reference the data from the template (using %label%). Adding a colloumn named "copies" tells the cardGen how many copies of the card to generate. Note: labels are case sensitive.

Download project as JSON