Templates

Sample projects created with TxtFiddle.

Remove empty lines

Removes blank lines and lines containing only whitespace from an input text.

Open Fiddle
Remove duplicate lines

Filters out duplicate lines from an input text while preserving the order of the original lines.

Open Fiddle
Sort lines alphabetically

Sorts the lines of an input text lexicographically in ascending or descending order.

Open Fiddle
Shuffle lines

Rearranges the lines of a text in random order.

Open Fiddle
Count words

Determines the total number of words in a text.

Open Fiddle
HTML-encode

Replaces characters reserved in HTML (such as "&") with characters references (such as "&")

Open Fiddle
Extract 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 Fiddle
Extract data from XML

Demonstrates how to use the "Fast XML Parser" library to read an XML document and output selected nodes.

Open Fiddle
Convert currency

Downloads exchange rates from exchangerate-api.com and converts an input value to a target currency.

Open Fiddle
Convert JSON to XML

A quick and easy JavaScript implementation of a JSON to XML converter.

Open Fiddle
Base64-encode

Shows how to use JavaScript's bota() method to Base64-encode an input text.

Open Fiddle
Base64-decode

Uses JavaScript's aotb() method to Base64-decode an input text.

Open Fiddle
Generate MD5 hash

Computes the MD5 hash for an input text and returns it as a sequence of 32 hexadecimal digits.

Open Fiddle
Geolocate IP address

Queries a free geolocation API to determine the location of an IPv4 or IPv6 address.

Open Fiddle
Format SQL statement

Beautifies SQL code by adding idents and line breaks.

Open Fiddle
Convert Markdown to HTML

Converts text in Markdown format to HTML code using the "Marked" JavaScript library.

Open Fiddle
Extract text from HTML code

Strips all HTML tags and formatting from the input text.

Open Fiddle
Generate random password

Generates a secure random string from an input alphabet.

Open Fiddle
Generate ASCII table from CSV/TSV

Parses comma- or tab-delimited data and turns it into an ASCII-art table.

Open Fiddle
Word-wrap text

Demonstrates how to use a regular expression to word-wrap the input lines at a certain width.

Open Fiddle