Templates
Sample projects created with TxtFiddle.
Remove empty lines
Removes blank lines and lines containing only whitespace from an input text.
Open FiddleRemove duplicate lines
Filters out duplicate lines from an input text while preserving the order of the original lines.
Open FiddleSort lines alphabetically
Sorts the lines of an input text lexicographically in ascending or descending order.
Open FiddleHTML-encode
Replaces characters reserved in HTML (such as "&") with characters references (such as "&")
Open FiddleExtract data from CSV
Example of how to use the "Papa Parse" library to parse a CSV document in JavaScript and return the content of a particular column.
Open FiddleExtract data from XML
Demonstrates how to use the "Fast XML Parser" library to read an XML document and output selected nodes.
Open FiddleConvert currency
Downloads exchange rates from exchangerate-api.com and converts an input value to a target currency.
Open FiddleConvert JSON to XML
A quick and easy JavaScript implementation of a JSON to XML converter.
Open FiddleBase64-encode
Shows how to use JavaScript's bota() method to Base64-encode an input text.
Open FiddleGenerate MD5 hash
Computes the MD5 hash for an input text and returns it as a sequence of 32 hexadecimal digits.
Open FiddleGeolocate IP address
Queries a free geolocation API to determine the location of an IPv4 or IPv6 address.
Open FiddleConvert Markdown to HTML
Converts text in Markdown format to HTML code using the "Marked" JavaScript library.
Open FiddleGenerate ASCII table from CSV/TSV
Parses comma- or tab-delimited data and turns it into an ASCII-art table.
Open FiddleWord-wrap text
Demonstrates how to use a regular expression to word-wrap the input lines at a certain width.
Open Fiddle