Input Filenames: Paste your list of filenames here. Supports various formats like direct lists, `ls -l` output, or space-separated names. For filenames with spaces, ensure they are quoted if using space-separated input. Alternatively, you can use the "Select Files to Populate List" button above to choose multiple files from your computer; their names will be added to this textarea. Note: Due to browser security limitations, selecting individual files this way does not provide their original folder path to the tool, only the filenames themselves.
Prefix to add: Enter any text you want to prepend to each filename before other operations (like quoting or creating anchors) are performed. This prefix is applied to the filename part, or the full path if that's what's being processed.
Prefix to remove (for anchors): If your filenames include a common path prefix (e.g., C:\Users\YourName\Documents\
or /home/user/files/
) that you want to strip from the generated anchor href
, enter it here. This is useful for creating relative links. This removal happens *after* any "Prefix to add" is applied if the "Prefix to add" forms part of the removable prefix.
Image Style (for anchors): Define the CSS style for image previews when converting image filenames to anchors. The default (max-width:100px; max-height:100px; display:block;
) keeps images small and on their own line.
Image Width (optional): Specify a fixed width (in pixels) for image previews in anchors. Overrides width defined in "Image Style" if both are present for width control (e.g., max-width
vs width
).
Image Height (optional): Specify a fixed height (in pixels) for image previews in anchors. Overrides height defined in "Image Style" if both are present for height control (e.g., max-height
vs height
).
Convert to Quoted List Button: Processes the input filenames, applies the "Prefix to add", and then outputs each resulting filename enclosed in double quotes, one per line.
Extract Filenames Only Button: Processes the input, extracts just the base filename (e.g., "image.png" from "/path/to/image.png"), applies the "Prefix to add" to this base filename, and then if the result contains spaces, it will be enclosed in double quotes.
Convert to HTML IMG Anchors Button: This button creates HTML links ( tags).
href
attribute), it then applies the "Prefix to remove" to this prefixed name.![]()
tag), using the "Image Style", "Image Width", and "Image Height" settings. The alt
text for the image will be the filename part (after "Prefix to add").Convert to HTML Text Anchors Button: This button also creates HTML links ( tags) but *always* uses text for the link, never an image preview.
href
attribute), it then applies the "Prefix to remove" to this prefixed name.Output: The processed filenames or HTML anchors will appear here.
HandfulOfTools.com is your go-to online resource for a diverse collection of practical and easy-to-use tools. Whether you need to calculate, convert, or solve, our website aims to provide simple solutions for a wide range of everyday tasks and specialized needs. Explore our growing selection of utilities designed to make your life easier!