Encoding Toolkit: Base64, Hash, URL Encode, JSON to CSV avatar

Encoding Toolkit: Base64, Hash, URL Encode, JSON to CSV

Pricing

from $0.50 / 1,000 item processeds

Go to Apify Store
Encoding Toolkit: Base64, Hash, URL Encode, JSON to CSV

Encoding Toolkit: Base64, Hash, URL Encode, JSON to CSV

Base64 and hex encode or decode texts and files, URL and HTML encode, MD5, SHA and HMAC hashes, CRC32, UUIDs, JSON pretty, minify and validate, JSON to CSV, CSV to JSON, JWT decode, slugs and text stats. Up to 10,000 items per run, one row each. For automations and AI agents.

Pricing

from $0.50 / 1,000 item processeds

Rating

0.0

(0)

Developer

Markus Heiß

Markus Heiß

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

One Actor for the small data jobs that automations and AI agents need all the time. Pick an operation, pass a list of texts or file URLs and get one clean dataset row per item: Base64 and hex encoding and decoding, URL and HTML entity encoding, MD5, SHA and HMAC hashes, CRC32, UUIDs, JSON pretty print, minify and validation, JSON to CSV and back, JWT decoding, slugs and text statistics.

Everything runs inside the Actor in plain Node.js. Your texts are not sent to any other service. Files are downloaded only from the URLs you give.

What it does

  • Base64, Base64url, hex: encode texts and files, decode back to text or to a file. Decoded images, PDFs and ZIPs are stored in the run's key-value store with a download URL. Data URIs (data:image/png;base64,...) are decoded with their content type, and Base64 encoding can return a data URI ready for HTML, CSS or an LLM image payload.
  • URL encoding: component mode for query values, full URI mode that keeps : / ? & = #, and form mode with + for spaces. Decoding reports broken % sequences as an error instead of guessing.
  • HTML entities: escape & < > " ', optionally every non-ASCII character as &#...;. Decoding handles numeric entities and the full HTML 4 named set (&eacute;, &euro;, &hellip;, ...).
  • Hashes and checksums: MD5, SHA-1, SHA-256, SHA-512 and CRC32 of texts or files, as hex or base64. HMAC with SHA-256, SHA-1, SHA-512 or MD5 and a secret key in an encrypted input field, for example to compute or check webhook signatures.
  • UUID v4: generate 1 to 10,000 random UUIDs, one row each.
  • JSON: pretty print with your indent, minify, and validate with the line and column of the first error.
  • JSON to CSV: arrays of objects become rows, the columns are the union of all keys, nested objects become columns like address.city. Comma, semicolon, tab or pipe as delimiter, correct quoting.
  • CSV to JSON: RFC 4180 parsing with quoted fields, line breaks inside quotes and a delimiter that is detected for you. Values stay strings unless you turn on number and boolean conversion, so zip codes and IDs keep their leading zeros.
  • JWT decode: header and payload as JSON, plus alg, issued, not before and expiry dates and an expired flag. The signature is NOT verified and every row says so.
  • Slugify: URL slugs from titles in any Latin script (Grüße aus Österreich becomes grusse-aus-osterreich), with an optional length limit.
  • Text stats: characters, characters without spaces, words, lines, sentences and UTF-8 bytes.
  • Safe file downloads: only direct http and https file links, up to 25 MB. Private and local network addresses are blocked for the URL and every redirect. Links to video platforms and social media sites are refused.

Use cases

  • Make, n8n and Zapier: one step for Base64 attachments, signed webhook checks, CSV exports from JSON APIs or slugs for a CMS, without code modules.
  • AI agents: give an agent a reliable tool for encoding, hashing and format conversion instead of letting the model guess Base64 or SHA-256 by itself.
  • File integrity: compute SHA-256, MD5 or CRC32 checksums of a list of download URLs and compare them with published values.
  • Data cleanup: validate a batch of JSON documents, convert a CSV export to JSON for an API, or turn API JSON into a CSV for a spreadsheet.
  • Debugging: decode JWTs, URL encoded parameters and HTML entities from logs in bulk.

Input

FieldDescriptionDefault
OperationOne of the 25 operations listed aboveBase64 encode
ItemsTexts or direct file URLs, one per entry. Over the API also {"text": "..."} or {"url": "..."}
TextOne multi-line item such as a CSV table or a JSON document, processed first
Input typeauto: single URLs are files for operations that accept files. text: never download. url: every item is a file linkauto
Number of UUIDsFor UUID v4, 1 to 10,0005
Secret key (HMAC)Secret, encrypted, never in the output or the log
Secret key encodingutf8, hex or base64utf8
HMAC algorithmsha256, sha1, sha512, md5sha256
Hash outputhex or base64hex
Base64 as data URIReturn data:<type>;base64,...off
Decoded outputauto (text or file), text, fileauto
URL encode modecomponent, uri, formcomponent
HTML encode modebasic or nonAsciibasic
JSON indentSpaces per level for pretty print2
CSV delimiterauto, comma, semicolon, tab, pipeauto
CSV has a header rowFirst row holds the field nameson
Convert CSV numbers and booleans42 becomes a number, true a boolean, empty cells nulloff
Flatten nested JSONNested objects as dotted columns in JSON to CSVon
Max slug length0 means no limit0
Include input summaryFirst 200 characters of each text or the file URL in the rowon

Example, SHA-256 checksums of two files and a text:

{
"operation": "sha256",
"items": [
"https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png",
"https://jsonplaceholder.typicode.com/users",
"hello world"
]
}

Example, HMAC-SHA256 signature of a webhook body, with the key in the secret field:

{
"operation": "hmac",
"items": ["{\"event\":\"order.created\",\"id\":1001}"],
"secretKey": "YOUR_WEBHOOK_SECRET",
"hmacAlgorithm": "sha256",
"hashEncoding": "hex",
"inputType": "text"
}

Output

One dataset item per input item (per UUID for UUID v4):

{
"index": 1,
"operation": "base64Decode",
"inputType": "text",
"input": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==",
"inputBytes": 96,
"inputContentType": null,
"result": null,
"resultType": "file",
"fileUrl": "https://api.apify.com/v2/key-value-stores/AbC123/records/decoded-00001.png?signature=3kX9pQ2LmN7vR4tY8wZa",
"fileKey": "decoded-00001.png",
"fileContentType": "image/png",
"resultBytes": 70,
"data": null,
"warning": null,
"error": null
}
  • index is the position of the item in the input, the Text field first. Rows keep the input order.
  • inputType is text, file or none (UUIDs). input holds the first 200 characters of a text or the file URL. Passwords in URLs and query values named like signature, token, key or secret are replaced by ***. JWTs are always masked. The HMAC key never appears anywhere.
  • inputBytes is the UTF-8 size of a text or the size of the downloaded file. inputContentType is the type the server sent for a file.
  • result is the output as text: the encoded or decoded string, the hash, the CSV, the JSON. CSV to JSON returns the JSON array as a string, so every row has the same shape.
  • resultType is text or file. Files (decoded binary data, and results larger than 5 MB) are stored in the run's key-value store. fileUrl opens the file without an Apify token (it carries a signature), fileKey is its key, fileContentType its type.
  • resultBytes is the size of the result in bytes.
  • data holds extra structured facts for some operations: JSON validation (valid, type, length, message), CSV and JSON conversion (rows, columns, columnNames, delimiter), JWT (header, payload, algorithm, issuedAt, expiresAt, expired), text stats, CRC32 as a decimal and the HMAC algorithm.
  • warning explains things you should know, for example that a JWT signature was not verified.
  • Items that fail (invalid Base64, broken JSON for pretty print, a file that is too large, unreachable or of the wrong type, a refused platform link) return a row with error set and are free. JSON validate returns invalid as a normal, charged result.

Pricing

Pay per item: 0.0005 USD for every item processed, so 0.50 USD per 1,000 items. One UUID counts as one item. Items with an error are free. Set the maximum charge in Apify to cap the cost of a run; the Actor stops cleanly when it is reached.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start. The default 512 MB is enough for files up to the 25 MB limit.

Limits

  • At most 10,000 items per run. Split larger lists into several runs.
  • Text items up to 5 MB each. Files up to 25 MB each, downloaded with a 60 second timeout and up to 5 redirects.
  • Only direct http and https file links. No private or local network addresses. Links to YouTube, TikTok, Instagram, Vimeo and other video, streaming and social sites are refused.
  • Results over 5 MB, for example the Base64 of a 20 MB file, are stored as a file in the key-value store instead of the row.
  • Text operations (JSON, CSV, text stats, decoding from a file) need UTF-8 text files. Binary files return an error row.
  • JWT decode does not verify signatures and cannot read encrypted tokens (JWE).
  • HTML entity decoding covers numeric entities and the HTML 4 named set. Rare HTML5 names stay as they are.
  • Files in the key-value store are kept as long as the run's storage, by default according to your Apify data retention.
  • Data source: The texts you enter and the files at the URLs you list. All operations run inside the Actor. The Actor is not affiliated with any of the sites you download files from.
  • Snapshot: Results show the files and texts at the time of the run. We do not guarantee that they are complete, current or correct.
  • For business use: This Actor is offered to businesses only, not to consumers.
  • Permitted use: Process only texts and files you own or are allowed to use. Use HMAC keys and decode JWTs only for systems you are entitled to access.
  • Your responsibility: You choose the inputs and decide what happens with the results. If your texts, files or tokens contain personal data, you are the controller and need your own legal basis. JWT payloads often contain user IDs or email addresses; turn off the input summary for confidential data.
  • No circumvention: The Actor downloads only direct, public file links. It does not bypass logins, captchas, rate limits, paywalls or other access restrictions, it has no proxy option, and it refuses video and social media platforms.
  • Request volume: One download per file, at most 3 at a time, with up to 3 retries and backoff on HTTP 429 and 5xx. Do not use it to put load on servers you do not own.
  • Provider: forgeloop, Markus Heiss, Austria. Imprint, Privacy Notice, Terms of Use.

Questions and issues

Open an issue on the Actor page.